This might sound trivial but I require passing an argument through an onChange() method that I have created on a dynamic combo-box selection.
Method within which the Combobox is created
function createWhereClauseForm(elementID, fromNameSt,attributesNameArray,attributesDataTypeArray)
{
...
var attributesListed = '<select id="WhereAttributeCombo" onChange = "getSelectedAttribute($elementID)"><option value="voidopt">Select an attribute</option>';
...
}
This is what I've currently done passing the elementID using $elementID. But it does not work.
Any suggestions on how I could pass this elementID to the getSelectedAttribute method within the same script will be much appreciated.