How to find the value of input field using jquery .closest() method when checkbox is checked?
This code is giving me undefined value when I try to show the value through alert message. <div> <input type="checkbox"> <div class="aid_closest"> <input type="text" name="aid" id="aid" class="aid" value="sample_value"> </div> </div> And this is what I put inside my script code..…