Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
var obj = {
"key1": "test1",
"key2": "test2",
"key3": "test3"
}
if (obj.hasOwnProperty("key1")) {
$("div").text("your key already exists!");
}
else {
$("div").text("your key does not exist!");
}
});
</script>
</head>
<body>
<div></div>
</body>
</html>
The most helpful JQUERY solutions
plugin get client ip address using jqueryJQUERY Click to see more ... 10.8K 1.8K