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