Note that there are some explanatory texts on larger screens.

plurals
  1. POJsfiddle code not working in localhost wamp
    primarykey
    data
    text
    <p>i have implemented validation for fundtransfer in jsfiddle. it works fine in jsfiddle but not working in localhost. i am using wamp.</p> <p>here is my jsfiddle link - <a href="http://jsfiddle.net/BzdfN/31/" rel="nofollow">http://jsfiddle.net/BzdfN/31/</a></p> <p>but when i am implementing this in localhost.its not working.</p> <p>my html code is </p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;link rel="stylesheet" type="text/css" href="style.css"&gt; &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt; &lt;script src="validate.js"&gt;&lt;/script&gt; &lt;title&gt; Infy Bank Fund Transfer Entry Page &lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;table class="layout" border="0" width="90%" align="center"&gt; &lt;form name="addcust" method ="POST" action ="http://localhost:8080/myapp/jsp/AddCustomerJSP.jsp"&gt; &lt;td colspan="2"&gt; &lt;table border="0" width="70%" align="center"&gt; &lt;tr&gt; &lt;td align="center" colspan="2"&gt; &lt;div class="heading2"&gt;Infy Bank&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align="center" colspan="2"&gt;&lt;p class="heading3"&gt;Fund transfer&lt;/p&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;/tr&gt; &lt;tr&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Payers account no&lt;span class="mandatory"&gt;*&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="text10" id="text10" size="25" /&gt; &lt;div width="100%" id="equal"&gt;&lt;a href="#" class="button button-green"&gt;&lt;/a&gt;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;!--&lt;tr&gt; &lt;td&gt;Payees account no&lt;span class="mandatory"&gt;*&lt;/span&gt;&lt;/td&gt; &lt;td&gt; &lt;input type="text" name="name" value=2008 maxlength="25"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Amount&lt;span class="mandatory"&gt;*&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;input type="text" Value=500 name="state" maxlength="25"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Description&lt;span class="mandatory"&gt;*&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="pin" value=self maxlength="6"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;span class="mandatory"&gt;*mandatory field&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="submit" name="AccSubmit" value="Submit" onClick="return validatebal();"&gt; &lt;input type="reset" name="res" value="Reset"&gt;&lt;/td&gt; &lt;/tr&gt;--&gt; &lt;/form&gt; &lt;/table&gt; &lt;p align="right"&gt;&lt;a href="homepage.html"&gt;Home&lt;/a&gt;&lt;/p&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>and my validate.js is</p> <pre><code> $("#text10").keyup(function(){ $("#text10").blur(); $("#text10").focus(); }); $("#text10").change(function(){ var name = $('#text10').val(); var numbers = /^[0-9]+$/; var specialChars = "&lt;&gt;@!#$%^&amp;*()_+[]{}?:;|'\"\\,./~`-="; if (name == "" || name == " " ) { $("#equal").show(); $("#equal a").html("please enter account number"); } else if(name.match(numbers)) { $("#equal").hide(); $("#equal a").html("correct account number"); // alert('All Boxes have elements.'); } else if(name.match(specialChars)) { $("#equal").show(); $("#equal a").html("correct account number"); // alert('All Boxes have elements.'); } else { $("#equal").show(); $("#equal a").html("please check your account number correctly"); } }); </code></pre> <p>So guys can you what i am doing wrong. please help</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