I have a form and i’m using this to select it’s radio buttons:
$('form[id^="form-"]').find("input:radio");
But when I use a function on it I have to use this (so that i’ll know from which form the function is fired) and this gives me form > radio-button. How can I use this to get the ID of the form?
The simplest and most efficient way is to access the
formproperty of the element in question: