I want to identify the full id tag, not sure how to do it:
\$("div[id^='reportdate-'] input[name='radiovalue']").change(function(event) {
var id_value = \$(this).attr('id');
var value= \$("div[id^='reportdate-'] input[name='radiovalue']:checked").val();
alert(value);
alert(id_value); // NOT WORKING!!
});
You are trying to get the ID of the input. You probably should use:
If the input isn’t a direct child of the id you want. You can use: