How to use comparison operator in Javascript for two input values -


I want to compare two input values, just try it in javascript, but it is not working properly. I am using the following code

  function check_closing () {var opening = $ ('#include'). Val (); Var closing = $ ('# off'). Val (); If (opening and closing; off) {warning ('opening more than, please enter correct value'); $ ('#closure') val (''). }}   

If the initial value is input = 8541, the closing value such as = 8241, this job is okay, but if closing 954 it is not working please help.

Thanks in advance.

Convert a string before comparing the string:

  Check_design () {var opening = $ ('#include'). Val (); Var closing = $ ('# off'). Val (); If (persian (openings)> purse (end) {warnings ('opening is more than closed, please enter correct value'); $ ('#closure') val (''). }}    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -