function td(id,inc)
{
var idnew=$(id).attr("id");
var tr=id;
var tdchild = document.createElement('td');
tdchild.innerHTML="<input type=radio name=rd"+idnew+" value=rd"+idnew+"><input type=text name="+idnew+"[] size=5>";
tdchild.setAttribute("id",inc);
tr.appendChild(tdchild);
}
My code generates dynamic radio buttons as above. But i am having problems in posting radio buttons
Radio and checkbox inputs will only be posted if they are set/checked. Otherwise they won’t show up in the post.
I always recommend doing things incrementally. Try first doing this with static html. Get that working. Then come back and make it dynamically generated.