enable a textbox when check a checkbox
<p>I try using a jquery to enable a textbox when checked a checkbox.
<a href="http://sushiant.com/%D8%AA%D9%85%D8%A7%D8%B3-%D8%A8%D8%A7-%D9%85%D8%A7/" rel="nofollow">my page</a>
jquery:</p>

<pre><code>&lt;script&gt;
$(document).ready(function(){
  $('#isNews').change(function(){
    $("#newsSource").prop("disabled",false);
});
});
&lt;/script&gt;
</code></pre>

<p>html:</p>

<pre><code>&lt;label class="checkbox"&gt;
    &lt;input type="checkbox" id="isNews" name="isNews"&gt;If you want send news:
&lt;/label&gt;
&lt;label for="newsSource" class="ilable"&gt;news source&lt;/label&gt;
&lt;input id="newsSource" name="newsSource" class="input-xlarge" disabled="" type="text" placeholder="news source"&gt;
</code></pre>

<p>what's the problem?</p>
