How to use Misc Get() Method in JQuery
In this article I am going to explain about Misc get() method in jquery
jQuery Misc get() Method
jquery Misc Get() Method use for get the name and value of any selected element.
Syntax
Example
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$("button").click(function () {
pp = $("h2").get(0);
$("p").text(pp.nodeName + " :-" + pp.innerHTML);
});
});
</script>
</head>
<body>
<h2>
This is the heading of document</h2>
<button>
click me</button>
<p>
</p>
</body>
</html>
|
Output
You may also want to read these related articles: here
Ask Your Question
Got a programming related question? You may want to post your question here