In the page_load event, have:
RadioButtonList .Items[0].Attributes.Add ("onclick", "document.f orms[0]." +
txtZip.ClientID + ".disabled=true ;" + txtState.Client ID +
".disabled=fals e;"); //Item 0 is State
RadioButtonList .Items[1].Attributes.Add ("onclick", "document.f orms[0]." +
txtZip.ClientID + ".disabled=fals e;" + txtState.Client ID +
".disabled=true ;"); // Item 1 is Zip
Hope this helps.
"novice_develop er" <no************ *********@mail. codecomments.co m> wrote in
message news:no******** *************@m ail.codecomment s.com...
Hi All,
there is a radiobuttonlist having 2 list items (state & zipcode).
when i select state radiobutton the zipcode textbox should be disabled
and when i select a zipcode radiobutton the state textbox should be
disabled. And i need to handle this in client side only.
i'm not able to call a javascript function for radiobuttonlist .
can please some one help me to get out of this...
advance thanks
Mahi
--
novice_develope r
------------------------------------------------------------------------
Posted via
http://www.codecomments.com
------------------------------------------------------------------------