skip to Main Content

bootstrap 5 form validation is not working for textarea pattern attribute? – Jquery

I have used bootstrap 5 form validation method for my forms. https://www.w3schools.com/bootstrap5/bootstrap_form_validation.php I have tried pattern attribute with input elements <div class="row"> <input type="text" class="form-control" id="abc_input" name="abc_input" required="" autocomplete="off" pattern=".*S+.*"> <div class="invalid-feedback">Please provide a valid input value</div> <div class="valid-feedback">Looks good!</div>…

VIEW QUESTION

How to dynamically restrict duplicated value of <input='text'/> in a looped random value from <input='number'/> field – Jquery

$('#inputqty').on('change keyup',function(){ let inputs=''; let value = parseInt($(this).val()); if (0<value) { for (let i = 0; i<value; i++) { inputs+=`<div style="margin-left: 10px; margin-top: 10px;"> <input autocomlete="off" type="text" style="margin-bottom:5px;margin-top:5px; margin-left:10px;" name="item_serial" id="serial_number" placeholder=" Serial Number. item:${i+1}" tabindex="${i+6+1}" required /></br> </div>` }…

VIEW QUESTION
Back To Top
Search