Language: JavaScript
ASP Jquery Disable item witch Checkbox
//Disable Textbox $('#<%=CommentCheckBox.ClientID%>').click(function() { if ($("#<%=CommentCheckBox.ClientID%>").attr('checked')) $("#<%=CommentTextBox.ClientID%>") .val("U heeft er voor gekozen geen opmerkingen te plaatsen") .toggleClass('disabled') .attr("disabled", "disabled").blur(); else $("#<%=CommentTextBox.ClientID%>") .val("") .toggleClass('disabled') .removeAttr("disabled").blur(); });
Tags:
Report Abuse
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search

