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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -