For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!
Is Zpool (ZFS) supported and can be legally used and shipped using products on Oracle Enterprise Linux ?
Trying to use Zpool compression feature that provides a superior compression.
You could use indexOf, but that doesn't work in IE.
Try this:
var list = [ "1", "2", "3", "4"]; alert(jQuery.inArray( "3", list )); //this will return 2 alert(jQuery.inArray( "5", list )); //this will return -1
var list = [ "1", "2", "3", "4"];
alert(jQuery.inArray( "3", list )); //this will return 2
alert(jQuery.inArray( "5", list )); //this will return -1
If the element is not in list, inArray will return -1. So basically, you need to check if the returned value is -1 (the element is not in list) or greater (the element is in list).