Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

161
Vistas
How to remove readonly attribute when input doesn't qualify from bootstrap validator?

I have a form and the default is readonly for each input. Try to remove readonly attribute when input doesn't qualify the bootstrap validator.

  1. Is there any way to check form with bootstrap validator without submit the button? like checking inside document ready?

  2. How to remove readonly attribute when it doesn't qualify bootstrap validator checking?

        <div class="content">
    
            <div class="col-md-12 bg boxCover" >
    
                <div class="row">
                    <div class="col-md-12 col-sm-12">
                    <div class ="form-group">
                        <label for="nama">Nama Lengkap<span class="text-danger">*</span></label>
                        <input type="text" id="customerName" readonly name="customerName" value="<?php echo $customerName?>" required class="form-control clean">
                    </div>
                    </div>
                </div>
            </div>
        </div>
    

JS

$('#formInput').bootstrapValidator({
        feedbackIcons: {
            valid: 'glyphicon glyphicon-ok',
            invalid: 'glyphicon glyphicon-remove',
            validating: 'glyphicon glyphicon-refresh'
        },
        fields: {
            customerName: {
                validators: {
                    regexp: {
                        regexp: "^[A-Za-z., ]+$",
                        
                    }
                }
            }
        }
    });
about 4 years ago · Santiago Gelvez
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda