how to use or(||) in jquery -
i have functions want trigger if whether first button clicked or second button clicked don't know syntax write it
store function , add buttons click event.
function yourfunc(){ //the code } $("#firstbutid").click(yourfunc); $("#secondbutid").click(yourfunc);
btw, wrote cause short stack overflow philosofy encourages make research, try , come here , ask when can't find solution problem. rather come , ask make code you.
Comments
Post a Comment