CodeIgniter Forums
Can we fire two events on a single check box click one from javascript and other from - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: General (https://forum.codeigniter.com/forum-1.html)
+--- Forum: Lounge (https://forum.codeigniter.com/forum-3.html)
+--- Thread: Can we fire two events on a single check box click one from javascript and other from (/thread-72025.html)



Can we fire two events on a single check box click one from javascript and other from - andrewfetterly - 10-26-2018

Code:
<asp:checkbox ID="chkheader" runat="server" onchangeclicked="checkbox clicked">
<asp:checkbox ID="chkrows" runat="server" onchangeclicked="checkbox clicked">


($document.ready(function(){
$('#gridview1').find(input:checkbox[id$="chkAll"]).click(function(){

-----do something
}


Codebehind
Code:
protected void checkbox clicked(object sender,EventArgs e)
{
----do something
}

I need both events to fire on checkbox click. Is it possible??

**SEO SPAM LINK REDACTED!**


RE: Can we fire two events on a single check box click one from javascript and other from - InsiteFX - 10-27-2018

Maybe this will help.

Call 2 functions within onChange event