Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to disable complete table on Button Click?
    primarykey
    data
    text
    <p>. .on clicking a button i should disable the whole table, which includes text box, text input field. and on clicking it again the table should get enabled. . please help</p> <pre><code>&lt;div class="prod_box" &gt; &lt;div class="center_prod_box" id="amul1"&gt; &lt;div class="product_title"&gt;&lt;a href="" Title="Amul Butter"&gt;Amul Butter&lt;/a&gt;&lt;/div&gt; &lt;div class="product_img"&gt;&lt;a href="#"&gt;&lt;img src="item_images/AmulButter.png" alt="" border="0" width="110" height="87" Title="Amul Butter" /&gt;&lt;/a&gt;&lt;/div&gt; &lt;div class="item_table"&gt; &lt;div id="item_hover"&gt; &lt;table width="189" border="0" cellspacing="0" cellpadding="0" id="item_listing_100"&gt; &lt;tr onclick="selectRow(this)"&gt; &lt;td align="center" valign="middle"&gt; &lt;span class="checkbox"&gt; &lt;span class="custom-checkbox"&gt; &lt;input id="option" name="item_number" type="checkbox" class="ckbox" value="1" onclick="this.checked=!this.checked;"/&gt; &lt;span class="box"&gt; &lt;span class="tick"&gt;&lt;/span&gt; &lt;/span&gt; &lt;/span&gt; &lt;/span&gt; &lt;/td&gt; &lt;td align="left"&gt;500gm&lt;/td&gt; &lt;td&gt;X&lt;/td&gt; &lt;td&gt;&lt;input name="item_quantity" type="text" class="tb5" placeholder="1" id="14" size="1" maxlength="2" value="1" /&gt;&lt;/td&gt; &lt;td align="left" style="font-size:11px"&gt;NOs&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>(On clicking the below button, the above table should get disabled. . . )</p> <pre><code> &lt;input type="button" class="button2" id="addtocart" value="Add to Cart" Title="Add to Cart" onClick="addItem_check('item_listing_100','ItemTable','100','Amul Butter','500','g','150.00','1','kg','200.00','2','kg','250.00'); amul1.style.backgroundColor='#c2ed5c'; if(this.value=='Add to Cart') {this.value = 'Remove from Cart'};"/&gt; &lt;/div&gt; &lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload