How Can I Call Different Function
I have a form: From Date: ... To Date: ... Vehicle Number: ... button (show record) dropdownmenu I enter the dates (from and to) and vehicle number it select the record
Solution 1:
Not totally sure what your asking, but if you want a certain function to run on the selection of a select box option, why not use a onchange event on the select box?
<selectid="mySelect"onchange="runFunction(document.getElementById('mySelect').value);"><optionvalue="myValue"></option><optionvalue="moreValues"></option><optionvalue="anotherValue"></option></select>
then the function can do different things depending on the values it has been passed a simple example would be
functionrunFunction(option){
if(option === "myValue"){
Do something
}
}
Post a Comment for "How Can I Call Different Function"