JS jQuery - check if value is in array

后端 未结 4 1280
野的像风
野的像风 2021-02-05 07:05

I am more of a PHP person, not JS - and I think my problem is more a syntax problem ..

I have a small jQuery to \"validate\" and check input value .

It works ok

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-05 07:43

    Alternate solution of the values check

    //Duplicate Title Entry 
        $.each(ar , function (i, val) {
            if ( jQuery("input:first").val()== val) alert('VALUE FOUND'+Valuecheck);
      });
    

提交回复
热议问题