kalu singh rao

kalu singh rao

  • 264
  • 6.4k
  • 106.1k

User checked checkbox then enabled textbox using jquery

Sep 26 2014 3:05 AM
Hi,

I am working on vb.net with jquery. I am generating dynamic table with checkbox and textbox. While generate table then i set disabled property for textbox. But right now i want to enabled when user can checked checkbox and user can enter value in textbox. If user can again unchecked then again disabled textbox for user. I want to do this using jquery but how can i apply for this.

This is my dynamically create table code.
<table id="MasterList"  style="width:100%;"  class="navigateable" border="1"><thead><tr><th class="thd"> </th><th style='display:none'>0ItemID</th><th class="thd">LedgerName</th><th class="thd">SerialFrom</th><th class="thd">SerialTo</th><th class="thd">Qty</th><th class="thd">Rate</th><th class="thd">AddQty</th></tr></thead><tbody><tr id="row0"><td width="0%" class="chk"><input type="checkbox"/></td><td style='display:none'>7</td><td style="white-space:nowrap;">SB FORMS</td><td style="white-space:nowrap;">1</td><td style="white-space:nowrap;">100</td><td style="white-space:nowrap;">10</td><td style="white-space:nowrap;">10.000000</td><td style="white-space:nowrap;" class="txt"><input type="textbox" disabled="disabled" id="txtbox1"/></td>

This is my dynamically create table image.


Any help will appreciate.Thank you

Answers (4)