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
Post a Comment