Note that there are some explanatory texts on larger screens.

plurals
  1. POmy simple jquery validation not working
    primarykey
    data
    text
    <p>Hey guys here is my code:</p> <pre><code> &lt;script&gt;$('td#view-details').click(function() { var fg = $(this).closest('td').siblings(':first-child').text(); $('#'+fg+'confirm').click(function () { if($('form #' + fg + 'input[name=test]').val() == "") { $('#error_notification').fadeIn(100).delay(1000).fadeOut(100); return false; } else { $(main).text('show'); $('#' + fg).addClass('details').removeClass('active'); $('#success_notification').fadeIn(100).delay(1000).fadeOut(100); } }); &lt;/script&gt; &lt;html&gt; &lt;table width="742" id="redemptions_landing_page" valign="top"&gt; &lt;tr&gt; &lt;th&gt;ID&lt;/th&gt; &lt;th&gt;Investor Name&lt;/th&gt; &lt;th&gt;Email&lt;/th&gt; &lt;th&gt;Credit&lt;/th&gt; &lt;th&gt;Request Amount&lt;/th&gt; &lt;th&gt;Request Mode&lt;/th&gt; &lt;th&gt;View&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;1848719408&lt;/td&gt; &lt;td&gt;arvind&lt;/td&gt; &lt;td&gt;xxxyy@gmail.com&lt;/td&gt; &lt;td&gt;Rs 5000&lt;/td&gt; &lt;td&gt;Rs 300&lt;/td&gt; &lt;td&gt;Cheque&lt;/td&gt; &lt;td id="view-details"&gt;show&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;form id="1848719408"&gt; &lt;textarea cols="40" rows="10" id="remarks" placeholder="Remarks (enter courier number and courier service provider for confirmed redemptions, enter reason for rejected redemptions)"&gt;&lt;/textarea&gt; &lt;h3 class="bbrdt"&gt;Redemption Amount&lt;/h3&gt; &lt;input type="text" name="test" id="Amount_For_Investor" placeholder="Amount For Investor" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;input name="test" type="text" id="courier_charges" placeholder="Courier Charges"/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;input value="Confirm" type="button" id="1848719408confirm" /&gt; &lt;button id="reject"&gt;Reject&lt;/button&gt;&lt;/form&gt; </code></pre> <p>I want to validate the text fields but it's not working, the success notification is showing again when the text fields are empty, but the error notification is not displaying.</p>
    singulars
    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.
    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