Here is my simple code:
function save_edit(res,table_color)
{
var the_form="details_"+res;
alert(document.the_form.title.value);
}
All I want to do is dynamically put the form from which to fetch the value of "title",
but the above code is throwing a syntax error.
How do I do it?
This may be what you want
But I recommend you look in to
getElementByIdand more importantly, jQuery. IN jQuery you might say:To achieve the same thing.