skip to Main Content

JQuery Validation of Form

I am having a lot of trouble trying to modify the errorClass and validClass with Jquery validation. I assume all I need to do is add the .validate function and set the parameters. Whilst the validation does fire and the…

VIEW QUESTION

Jquery – while on input by javascript

I am a beginner learning javascript. $('.btn').on('click', function(){ let i = 0; while (i < 5) { $(this).closest('.number').val(i) i++; } }) <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <div class="btn">Sort</div> <input type="text" class="number" data-id="1" value="1"> <input type="text" class="number" data-id="5" value="5"> <input type="text" class="number" data-id="4" value="4">…

VIEW QUESTION
Back To Top
Search