Click here to Skip to main content
15,609,498 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

I having a datalist ,the datalist contains one linkbutton and some controls with values ,how to pass the values of datalist throug javascript function that function cal from linkbutton
rizwan muhammed khan gouri 19-Jan-13 1:59am    
Please give your code..

1 solution

Basic idea and yes === is correct

var arr = [];
var foo = document.getElementById("<%= MyDataList.ClientID %>");
var inps = foo.getElementsByTagName("input");//control declaration in the datalist

for(var i=0;i<inps.length;i++){
     //and just add some code again

You might have to change MyDataList
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900