javascript - Different ways to disable radio button -


what different ways disable radio button.

i tried example below not working in system environment set up. working if trying on notepad without environment. there other ways?

var status = 'a';    $("input[type=radio][value=" + status + "]").attr("disabled",true); 

i able use disabled in html find updated code

    <div id="cosprofile">cos profile</div>     <span class="icon-information"></span> <div class="form-field" data-radio id="cosradiobtns">     <span id="radio_prdefined"><input type="radio" name="cosprofile" data-radio   value="predefined" checked="checked" disabled/></span>         <label id="cos_predefined">predefined profile</label>     <span id="radio_custom"><input type="radio" name="cosprofile" data-radio  value="custom" disabled/></span>         <label id="cos_custom">custom profile</label> </div> 

Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -