Why I am unable to change this checkbox if i use data to restore textbox values beside to it
<p>Hi  As stated in the Question i am unable to uncheck/check the textbox..<br>
Fiddle : <a href="http://jsfiddle.net/Uehnh/1/" rel="nofollow">http://jsfiddle.net/Uehnh/1/</a><br>
Here is my HTML  </p>

<pre><code>&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;&lt;input type='checkbox'&gt;&lt;span&gt;Text1&lt;/span&gt;&lt;input type='text'&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;input type='checkbox'&gt;&lt;span&gt;Text2&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;input type='checkbox'&gt;&lt;span&gt;Text3&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;input type='radio'&gt;&lt;span&gt;None of all&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>The below code is not allowing me to uncheck or check the checkbox..Actually this is intended to restore the previously cleared data of textbox..</p>

<pre><code> $('.humble').live('change',function()
 {
    var th=$(this);
    var input=th.closest('td').find('input[type="text"]');
    if(th.prop('checked',false))
    {
        input.data('text',input.val());
        input.val('');
    }
    else
    {
        input.val(input.data('text'));
    }
 });
</code></pre>

<p>and here is the fiddle with complete code <a href="http://jsfiddle.net/Uehnh/1/" rel="nofollow">http://jsfiddle.net/Uehnh/1/</a><br>
I am trying to restore the text with previous text using data property.. But here i am unable to check the first checkbox.. This is not allowing me to do..<br>
Please check and let me know errors..</p>
