Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 140705

Unable to pass data from asp.net to javascript function dynamically?

$
0
0

this is my asp.net code where Im passing 4 values to the javascript function fnInsertLeave and below is the javascript function,unable to get values in the function enter code here

"</td>" +"<td><input type='submit' id='btnsubmitleave' onclick=fnInsertLeave(" + emp.ID + ",'" + emp.Name + "','fromdate" + index + "','todate" + index + "')/></td>" +"</tr>",

in the function Im not getting values function fnInsertLeave(id,name,fromdate,todate) {}


Viewing all articles
Browse latest Browse all 140705

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>