Forum Moderators: open
el.name = "u1_prizes[p_102]";
I tried this in Firefox 2 and IE7 and it worked in both.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<title>Untitled</title>
</head>
<body>
<form action="">
<div>
<input id="foo" name="bar">
<input type="submit" value="submit">
</div>
</form>
<!-- Scripts -->
<script type="text/javascript">
window.onload = function() {
var el = document.getElementById('foo');
el.name = 'u1_prizes[p_102]';
};
</script>
</body>
</html>