Originally posted by premgwl rai:
Hi All,
I am calling a javascript method in anchor tag on onclick event. my problem is , method is not called on onclick and not giving any Error.
Method----
function exportcsv1(uid){
alert("Test");
alert(uid);
}
uid is a variable of jsp
Regards
Prem
call the function as below.
exportcsv1(<%= uid%>)
pass the value of variable uid to javascript function using expression.
it will generate html like this
exportcsv1(sud)