travisbrown
Technical User
- Dec 31, 2001
- 1,016
Is there a function similar to SQL IN or VB inStr for js?
I need to find out if a selected index value is in in array of numbers.
In pseudo-code...
if (document.form1.txtEmployeeID.value=="" && document.form1.selJobs.options[document.form1.selJobs.selectedIndex].value IN 24,23,44,53,54,54,23,121) {
I need to find out if a selected index value is in in array of numbers.
In pseudo-code...
if (document.form1.txtEmployeeID.value=="" && document.form1.selJobs.options[document.form1.selJobs.selectedIndex].value IN 24,23,44,53,54,54,23,121) {