skip to Main Content

how to make checkboxes required – Jquery

I have the following code on my page that has few checkboxes. <form> <input type="checkbox" id="CatFood" /><b>Cat Food</b><br /><br /> <input type="checkbox" id="Food1" name="test222" onclick="reported(this)" />Delicious Food<br /> <input type="checkbox" id="Food2" name="test222" onclick="reported(this)" />Healthy Food<br /><br /><br /> <button type="submit">Submit</button>…

VIEW QUESTION

Javascript disable scroll on input type=text – Jquery

Having a table with input fields as td. Example of input field: `<input type="text" value="20.300,00" style="max-width: 95px;">` Im trying to disable the ability to scroll in this element. This is my code: `$(document).on("wheel", function(event) { if ($(document.activeElement).is("input[type='text']")) { $(document.activeElement).blur(); }…

VIEW QUESTION
Back To Top
Search