Hi..
I have a problem with my project.
I want to create dynamic radio button group with different names.
<script language="javascript">
function changeIt()
{
my_div.innerHTML = my_div.innerHTML +"<br>Skills<input type='text' name='mytext[]' value='mytext'>";
my_div.innerHTML = my_div.innerHTML +"<br><input type='radio' id='my' value='mytext' value='male' name='radio[]'>";
my_div.innerHTML = my_div.innerHTML +"<input type='radio' id='my' value='Female' name='radio[]'>";
//var el = document.getElementById('my');
//el.name = 'level';
}
</script>
<form name="form" action="homep.php" method="">
<input type="button" value="test" onClick="changeIt()">
<div id="my_div"></div>
<input type="submit" name="Submit" value="Submit">
</form>
I want to create a radio button group(2 radio buttons on a group) with different name.
Anybody knows please help me..