Is there any method or procedure to prevent jQuery to apply all the same classes except current class?

I have situation to apply some jQuery to current class which should not apply to remaining classes of having same name. I want to apply jQuery code to apply to first “img_click” div but not to next “img_click” Please find example code below: <div> <div class=”img_click”> <img src=”image1.jpg” /> </div> <div class=”info”> <h2>Image Heading</h2> <div>Posted…

Make group of inputs’ values don’t exceed a specified value

I’m making a game and using JavaScript/jQuery to spend points of character’s attributes. I have six inputs like this one, each representing one attribute: <input class=”attributeVal” type=”number” min=”1″ max=”36″ step=”1″ value=”1″> And one input like this (the “pool”): <input id=”pool” type=”number” min=”0″ max=”36″ step=”1″ value=”36″ readonly> The last input functions as a “pool”, which means…

FormData is not submitting checkbox value

i am trying to submit form using FormData, all input types are working fine except checkbox. ajax is not posting if value is 1 or 0 from checkbox. <form id=”update-form” method=”PUT” enctype=”multipart/form-data” > <input type=”text” id=”text” name=”text” value=”Hello”> //fine <input type=”checkbox” id=”visa” name=”visa” value=”0″> //not posting <button type=”submit” name=”id” id=”update-data” > UPDATE</button></form> Ajax: jQuery(document).ready(function(e) {…