Page 1 of 1

How to wrap a button click to initiate function

Posted: Wed Jul 03, 2013 9:39 am
by danjapro
I ok with jQquery, I have been trying for hours on how to wrap a button click function to this.

There is a onclick function on button called 'SendTransferAction', but still need to wrap it in the specific button only called button-2.

Code: Select all


           function SendTransferAction(){
                 jQuery("#response").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "Please enter correct Capthcha Code"
                 });	
           }


Re: How to wrap a button click to initiate function

Posted: Wed Jul 03, 2013 6:04 pm
by requinix
The best understanding I have so far for what you're trying to do is that the SendTransferAction function executes for multiple buttons but you only want it to execute for one particular "button-2" button. Is that right? Then why not just make only it call the function and not all the other buttons?