Kevin's Blog
Anything i find interesting at the time that I feel like sharing
Tuesday, September 11, 2012
handy dynamic JQuery event handler
in View :-
grid2.Column(format: @<input type="button" onclick="mysub='@item.UserName'" value="Setup" name="Setup" id="Setup" />),
var mysub = "";
$(function () {
$("#Setup").live('click', function () {
alert(mysub);
});
});
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment