¡@

Home 

2014/10/16 ¤W¤È 12:03:01

jquery Programming Glossary: doclick

call the same jQuery function in multiple buttons

http://stackoverflow.com/questions/13083106/call-the-same-jquery-function-in-multiple-buttons

share improve this question First solution function doClick e '#modal' .reveal animation 'fade' animationspeed 150 closeonbackgroundclick.. dismissmodalclass 'close' return false '#button1' .click doClick '#button2' .click doClick Second solution Give a class someClass.. return false '#button1' .click doClick '#button2' .click doClick Second solution Give a class someClass to all the involved buttons..

Simulate native click

http://stackoverflow.com/questions/1786377/simulate-native-click

window.location.href http stackoverflow.com function doClick jQuery '#mylink' .trigger 'click' trigger the redirect now.. '#mylink' .trigger 'click' trigger the redirect now doClick script EDIT1 @ comments If the other you describe returns false.. window.location.href http stackoverflow.com function doClick jQuery '#mylink' .trigger 'click' trigger the redirect now..

call the same jQuery function in multiple buttons

http://stackoverflow.com/questions/13083106/call-the-same-jquery-function-in-multiple-buttons

is popping up a fade in fade out form. javascript jquery html share improve this question First solution function doClick e '#modal' .reveal animation 'fade' animationspeed 150 closeonbackgroundclick true dismissmodalclass 'close' return false.. 'fade' animationspeed 150 closeonbackgroundclick true dismissmodalclass 'close' return false '#button1' .click doClick '#button2' .click doClick Second solution Give a class someClass to all the involved buttons input type button class someClass.. 150 closeonbackgroundclick true dismissmodalclass 'close' return false '#button1' .click doClick '#button2' .click doClick Second solution Give a class someClass to all the involved buttons input type button class someClass ... and do '.someClass'..

Simulate native click

http://stackoverflow.com/questions/1786377/simulate-native-click

'#mylink' .click function do whatever I want here then redirect window.location.href http stackoverflow.com function doClick jQuery '#mylink' .trigger 'click' trigger the redirect now doClick script EDIT1 @ comments If the other you describe returns.. http stackoverflow.com function doClick jQuery '#mylink' .trigger 'click' trigger the redirect now doClick script EDIT1 @ comments If the other you describe returns false you at that point terminate the callback with the false..