hi i have code
function mywidgets(){
alert(id1);
alert("ABC"+" "+url1);
var ni = document.getElementById('Listsample');
var numi = document.getElementById('cr');
var newdiv = document.createElement('li');
newdiv.innerHTML = "<a href='#' onclick='add("+url1+");' id='cricket' name='cricket'>"+id1+"</a>";
ni.appendChild(newdiv);
}
in which i want to add url and id one by one in list li
. Is this is correct or some modifications is required? I tried many ways but nothing worked. Please suggest some solution.
Thanks.