<input type="text" name="s" id="search" value="<?php the_search_query(); ?>" required oninvalid="this.setCustomValidity('Ingrese un término de busqueda para empezar')" />
<input type="text" id="contributor-rnc" class="form-input" placeholder="Ejemplo: 25766885" required oninput="setCustomValidity('')" oninvalid="this.setCustomValidity('Ingrese un número RNC para continuar')"/>
|-----------------------------------------------------------------------
| With jQuery
|-----------------------------------------------------------------------
*/
<script>
$('input[type="email"]')
.on('invalid', function(){
return this.setCustomValidity('Ingresa una dirección de correo válida.');
})
.on('input', function(){
return this.setCustomValidity('');
});
</script>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.