This code is working fine if ($(this).val() == “Spine”) but not ($(this).val() == “Spine”||“Brian”)

后端 未结 6 964
北海茫月
北海茫月 2021-01-20 04:28

This code is working fine if ($(this).val() == \"Spine\") but if ($(this).val() == \"Spine\"||\"Brian\") then the selection menu closes then opens

6条回答
  •  余生分开走
    2021-01-20 04:49

    You must state a complete condition /test on each side of the 'OR'.

    if($(this).val() == "Spine" || $(this).val() == "Brain")
    

提交回复
热议问题