i am creating a dynamic button in javascript and calling a function on its click,but I am not able to pass string parameter to it,what shoud be the proper code. I am doing this.
document.getElementById(divfield).innerHTML +="<input type='button' value='-'class='remove_this"+i+"' onclick=' removed("+i+",'"+s+"') '>";
here i is a integer,and s is a variable holding string.how should i pass string variable.