I have two button that run the same script but create different parameter.
<input type='button' id='btn_a' value='button_a' /><br />
<input type='button' id='btn_b' value='button_b' /><br />
How to set the button to create parameter for each which is pressed? something like this perhaps.
$('#btn_a, #btn_b').on('click', function(){
     if( $('#btn_a').data('clicked', true)) {
        //Create parameter for button A
    }
    if( $('#btn_b').data('clicked', true)) {
        //Create parameter for button B
    }
    //script for sent the parameters
});
 
     
    