How do I get the id of an input element based on its value? The values will always be unique and there are only seven of them. I have tried this:
$('#wrapper').find("input[value='"+value+"']").each(function(){
return this.id;
});
But nothing is returned!
Try
$(this).idnope, this.id works, no need to create a jQuery object for the ID.or
HTH
EDIT:
This might work: