<!DOCTYPE html>
<html>
<head>
<script src="js/jquery-3.6.0.js"></script>
<script>
$(document).ready(function () {
var arrStu = ["adi", "pavan", "madhan", "yagnesh"];
if ($.inArray("adi", arrStu) >= 0) {
alert("Value exists");
} else {
alert("Value Not exists");
}
});
</script>
</head>
<body></body>
</html>
Github Link: https://github.com/adi501/JQuery-Examples
No comments:
Post a Comment