How add click event div runat server

beegee

New Member
I having difficulty in meeting add an event click on a div tag with runat = "server".This works perfectly on IE but not on chrome, mozilla .. Search error :-)Here is the code I triedJAVASCRIPT:\[code\]function showAlertAnomalie() { alert("Handler test");}\[/code\]ASP:\[code\]<div id="btn_alert_anomalie" class="alertAnomalieClass" runat="server" onclick="showAlertAnomalie" > <asp:Label runat="server" Text="Alert annomaly" Font-Bold="true" Font-Size="12" ForeColor="White" style="cursor:pointer;"></asp:Label></div>\[/code\]I ave also try this but not work.. :\[code\]$("#btn_alert_anomalie").click(function () { alert("Handler test");});\[/code\]
 
Back
Top