$(document).keypress(function(e) {
    if(e.which == 13) {      //13 is stand for Enter key
        alert('You pressed enter!');
    }
});
Wednesday, 5 September 2012
Detect pressed key with jquery
Tuesday, 4 September 2012
Show & Hide Gridview Cell with mouse hover asp
 $(document).ready(function () {
$('<%# GridView1.ClientID%> tr td:nth-child(2)').hover(function () {
$(this).next().css("visibility", "visible"); // show on mouse over on row
});
$('<%# GridView1.ClientID%> tr').mouseleave(function () {
$('<%# GridView1.ClientID%> tr td:nth-child(3)').css("visibility", "hidden"); //hide on mouse leave from row
});
});
$('<%# GridView1.ClientID%> tr td:nth-child(2)').hover(function () {
$(this).next().css("visibility", "visible"); // show on mouse over on row
});
$('<%# GridView1.ClientID%> tr').mouseleave(function () {
$('<%# GridView1.ClientID%> tr td:nth-child(3)').css("visibility", "hidden"); //hide on mouse leave from row
});
});
Saturday, 1 September 2012
Call Server Method on Button Hover ASP
<asp:LinkButton ID="hoverButton" runat="server" OnClick="click" onmouseover="__doPostBack(this.id, '');" Text="Mouse Over Me" />
Subscribe to:
Comments (Atom)