I have a <div>
which is hidden through jquery only inital when the page loads.
I have button, in which on the click event the <div>
gets visible. I want the <div>
to be hidden on the button click event also. I have a event on the button click binding a grid in asp.net.
Following is the code I have tried in which #dInner
is the div and #bNextWeek
is the button.
$(document).ready(function () {
$('#dInner').hide();
$('#<%=bNextWeek.ClientID%>').live('click', function (e) {
$('#dInner').hide();
});
});