html:
<input type="text" id="txtExternalLink" style="display:none"/>
in radio button
$('#rdbExternalLink').bind("click", function() {
$('#txtExternalLink').removeAttr("style");
});
its work n text box is appear. But
$('#rdbPages').bind("click", function() {
$('#txtExternalLink').addAttr('style="display:none"');
});
its not work.Plz help to find correct way to do this.Thanks.
Craigs method will work, although what you’re doing is equivalent to the built in .hide() and .show() methods: