javascript - How to continuously check the value of an input using jquery? -


I have an input that is empty after page load, and if a user suddenly sums up the value on it

My problem occurs when I fill an input, if the condition result does not change in real time.

script:

  $ (document) .ready (function () {var countTimerEmailName = setInterval (function () {emailName ();}, 500); function emailname () ($ ('$ EmailCodeResult') Val ()! = '' || $ ('# email'). Val () == '') {Clear interval (countTimerEmailName);} $ .aex ({ Url: "view.php", type: "GET", data: {word: $ ('# email'). Val ()}, datatype: "JSON", success: function (result) {}});} ;});  

Change your work on fire

  $ ( '#inputA, #inputB'). Change (function () {if ($ ('# inputA'). Val ()! = '' || $ ('# inputB'). Val () == '') {Warning ("true");} Other {warning ("false");}})  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -