141
rated 0 times
[
145]
[
4]
/ answers: 1 / hits: 42428
/ 11 Years ago, tue, december 10, 2013, 12:00:00
Hi I have the following alert that is hidden on the page
<div class=alert alert-success id=selectCodeNotificationArea hidden=hidden>
<button type=button class=close data-dismiss=alert>×</button>
@TempData[selCode]
</div>
I display it with the following javascript
$('#send_reject_btn').click(function () {
var selRowIds = $(#ApprovalGrid).jqGrid('getGridParam', 'selarrrow');
if (selRowIds.length > 0) {
$('#reject_alert').show();
} else {
$('#selectCodeNotificationArea').show();
}
});
This is obviously linked to a button in my html.
After the alert is shown if I close it using the<button type=button class=close data-dismiss=alert>×</button>
The next time I press the button to open the alert I can see $('#selectCodeNotificationArea').show();
being called in my debug screen but the alert doesn't display again.
Has anyone experienced this before?
More From » jquery