javascript - Remove Radio Button List radio button in Content Place Holder -


This is generally practical on the body form tag on the web page, but when I apply it in the master page, the content Can anyone help me place the placeholder? Thanks a lot.

  & amp; Asp: content content plusholder id = "content plaster 1" runat = "server" & gt; & Lt; Script type = "text / javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {hideRadioSymbol ();}); Function Hidden RadioSymbol () {var rads = New Array (); Var rads1 = new array (); Rads = document.getElementsByName ('RadioButtonList1'); // Whatever ID you have given for reducing the radiologist, I Rads1 = document.getElementsByName ('RadioButton List 2'); For (var i = 0; i  & lt; Div id = "sidebar2" & gt; & Lt; ASP: RadioButton List ID = "RadioButton List 1" Runat = "Server" CSS Class = "PH-Button Menu PHH-BTN-Gray Menu" & gt; & Lt; ASP: ListItem & gt; S1 & lt; / ASP: ListItem & gt; & Lt; ASP: ListItem & gt; S2 & lt; / ASP: ListItem & gt; & Lt; ASP: ListItem & gt; S3 & lt; / ASP: ListItem & gt; & Lt; ASP: ListItem & gt; S4 & lt; / ASP: ListItem & gt; & Lt; / ASP: RadioButtonList & gt; & Lt; / Div & gt; & Lt; Br / & gt; & Lt; Input type = "button" data-name = "hide" value = "toggle" id = "toggle 3" class = "btn menu blue menu" /> & lt; Div id = "sidebar3" & gt; & Lt; ASP: RadioButton List ID = "RadioButton List 2" Runat = "Server" CSS Class = "pH Button Menu PHH-BTN-Gray Menu" & gt; & Lt; ASP: ListItem & gt; S1 & lt; / ASP: ListItem & gt; & Lt; ASP: ListItem & gt; S2 & lt; / ASP: ListItem & gt; & Lt; ASP: ListItem & gt; S3 & lt; / ASP: ListItem & gt; & Lt; ASP: ListItem & gt; S4 & lt; / ASP: ListItem & gt; & Lt; / ASP: RadioButtonList & gt; & Lt; / Div & gt; & Lt; / ASP: Content & gt;  

Use ClientID as follows Under the control of name instead of ID .
rads = document.getElementsById ('& lt;% = RadioButtonList1.ClientID%>')
rads1 = document.getElementsById ('& lt;% = RadioButtonList2.ClientID%>');

You can hide containers instead of different elements like you have to hide RadioButtonList1 , then the ID sidebar2 Hide div with

  $ ("# sidebar 2"). Hide ()  

As you are using jquery


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -