944,008 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 1712
  • ASP.NET RSS
Oct 30th, 2009
0

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

Expand Post »
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-"
Reputation Points: 10
Solved Threads: 0
Newbie Poster
prince23 is offline Offline
4 posts
since Oct 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: BoundFields with different DataSources
Next Thread in ASP.NET Forum Timeline: Setting width and Height in percent(%)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC