I have the following in jquery:
$( ".paid" ).each(function (i, tag) {
$(tag).change(function (i, tag) {
if ($(this).is(":checked")) {
alert($(tag).i);
$("invdesc_" + i).prop("disabled", false);
}
})
});
How can i pass i in the $(".paid") function to the $(tag).change function?
I need to change the .prop() based on the key which is coming from a php foreach() iteration.