Hi,
I have a dropdown list that I add the items from javascript depending on a selection made on a radiobuttonlist. The problem is that when the user clicks a button that do a PostBack, when the page reload the dropdownlist items are gone. I am new to javascript and I don't know how to control...
I use this code and now is working, I treat the radiobuttonlist as a table that contains the radiobutton:
In the pageLoad Event I have:
dim s = New System.Text.StringBuilder
s.AppendLine("ClearRadioButton(document.getElementById('" & rb_MAX.ClientID.ToString & "'));}")...
It dosen't work. Also I need to send the radiobuttonlist as a parameter to the JS function because I need to reuse that code for other checkboxes and radiobuttonlists on the content page.
This is part of my code in my PageLoad Event (I am using a content page inside a master page)
s = New System.Text.StringBuilder
s.AppendLine("if (document.getElementsByName('" & chkCancer.ClientID.ToString & "').checked == false) {")...
I have a checkmark that when the user clicked on it if it's checked then a radiobuttonlist is visible. When the checkmark is uncheked the radiobuttonlist is not visible. What I want to do is, when the checkmark get's unchecked if any item of the radiobuttonlist is checked I wanto to unchek it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.