I'm trying to do additional selections after I pass in a DOM node in jQuery. In this example, I'm trying to show a "hidden" submit button after a change in the select box (notice, I'm passing in the FORM element, NOT the SELECT element:
<form id="UpdateRegistrationStatusForm">
<select id="registration_status" onchange="AdjustRegistrationStatus(this.form)">
<option value="1">approved</option>
<option value="2">cancelled</option>
</select>
<input id="registration_status_update" type="submit" style="display:none" value="update"/>
</form>
So, the jQuery code that I WANT TO DO, BUT DOESN'T WORK looks something like this...
function AdjustRegistrationStatus(myForm)
{
jQuery(myForm "#registration_status_update").show();
if (jQuery(myForm "#registration_status").val() == 1)
{
//do some other things here...
}
}
I want to start with a FORM DOM object and add additional "string" selectors. Any help please?