javascript how to make the dropdown value to reset to intiall value(checking the chec

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2009
Posts: 4
Reputation: prince23 is an unknown quantity at this point 
Solved Threads: 0
prince23 prince23 is offline Offline
Newbie Poster

javascript how to make the dropdown value to reset to intiall value(checking the chec

 
0
  #1
Oct 30th, 2009
hi, "INSERT MODE"

i have check box in one "tr". and another dropdown control in another "tr" intially dropdown control will be invisiable intially .

but once the user checks the check box. the dropdown control should be visiable and he can select the value. but again the user unchecks the check box the dropdown should be set to default value that is "--selec--"

"UPDATE MODE" intailly checkbox.Test = dt.cloumn["state"].tostring();

if(checkbox.Test!= "") { checkbox.checked=true; //then value dropdown value should be shown like"india" } else { checkbox.checked="false" //then value dropdown value should be default "--select" } in insert mode checkbox willbe unchecked in update mode if checkbox in checked then the value of dropdown should be shown"india" in update mode if checkbox in unchecked then the value of dropdown should be shown default"-select-"
Reply With Quote Quick reply to this message  
Reply

Tags
asp.net, jquery

Message:



Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



Tag cloud for asp.net, jquery
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC