I am struggling to get the Javascript action going in the "onchange" event in the below example. I have tried all sorts of different syntax, but it does not work.
function display(){
$headingData ='<select name="input" id="input" onchange="$("#frmInput").submit()" >';
$headingData.='<option value="...." '.$selected.'>Selection1</option>';
$headingData.='<option value="...." '.$selected.'>Selection2</option>';
$headingData.='</select>
return $headingData;
}
evaland difficult to manage given the required escaping.onchange="$("#frmInput").submit()"uses two levels of double quotes... Trying using"as an entity within the double quotes, or a backslashed single quotes.onchange="$("#frmInput").submit()"toonchange="$(\'#frmInput\').submit()"