jquery onclick function
$( "#other" ).click(function() {
$( "#target" ).click();
});
jquery onclick function
$( "#other" ).click(function() {
$( "#target" ).click();
});
jquery on click function
//1st way
$(".searchCategory").click(function () {
//your code here
});
//2nd way
$(".searchCategory").on( "click",getCategory); // getCategory is a function but don't need the pharenthesis
//if you write getCategory() instead of getCategory when getCategory is a function with no pharamenters it might not work
clicking on button using jquery
$( #other ).click(function() {
$( #target ).click();
});
OR
//1st way
$(.searchCategory).click(function () {
//your code here
});
//2nd way
$(.searchCategory).on( click,getCategory); // getCategory is a function but don't need the pharenthesis
//if you write getCategory() instead of getCategory when getCategory is a function with no pharamenters it might not work
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