var value;
$("#Grid1").click(function(e) {
var row = jQuery(e.target).parent();
value= row.attr("id");
});
var onrowclick = function() {
("#Grid1").click($("#showgrid").load('/Names/Friends/satish/' + value));
};
I am trying to send the value on URL.
When I am giving like this I am not getting the output result.
Am I doing this correctly?
Is the problem that I am handling click event on same grid two times?
UPDATED: in responce to your comment:
if you want assign a variable outside the click event you can do this:
ADDITIONAL NOTE
now i don’t know if the
#Grid1is inside the#showgridbut if this is the case, you need to use thelive()method!like this:
assuming:
OR if you use table