Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

html onchange call js function

//Change the onchange to onChange="checkit(this); 
//and then something like the below in checkit

function checkit(selectObj)
{ 
  var idx = selectObj.selectedIndex;
  document.frm.Month.disabled = idx == 0;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #html #onchange #call #js #function
ADD COMMENT
Topic
Name
7+9 =