Just add #(followed by your field name). This is one exiting tip, I got through my friend.
I need to change the 2nd combobox value depend on the value of the first combobox value. Steps: 1) Create a combo box name it as "cmbValue" . And have some values. 2) Give default value to that combobox. 3) In the Onchange of that combo box place the code below. 4) Create another combobox value and name it as "cmbValue1" . 5) Give default value to that combobox also. Sample Code(Modify according to your values): var doc = document.forms[0].cmbValue; var doc1 = document.forms[0].cmbValue1; if(doc.options[doc.selectedIndex].text=="--Select--") { doc1.remove(0) doc1.options[0] = new Option("--Select--","cmbValue1") return false; } else { if(doc.options[doc.selectedIndex].text=="One") { doc1.options[0] = new Option("four","cmbValue1") doc1.options[1] = new Option("five","cmbValue1") return false; } else if(doc.options[doc.selectedIndex].text=="Two") { doc1.opt...
Comments
Post a Comment