jquery click function
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
jquery click function
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
document on click jquery
$(document).on("click", ".onClass", function () {
//your code
var element = $(this); // to get clicked element
});
jquery onclick function
$( "#other" ).click(function() {
$( "#target" ).click();
});
jquery click
<script>
$(document).ready(function(){
$("#btn-txt").click(function(){
var ptext = $("#my-para").text();
alert(ptext);
});
});
</script>
<button type="button" id="btn-txt">Get Text Content</button>
<p id="my-para">This is a paragraph to Show jQuery text method.</p>
jquery id click
$("#button").click(function () {
//result show on console.
console.log("Button Was Click");
//console.log(this);
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us