0

Hi,

I am using IE8.
I am trying to set value for check_id but it not working in IE8.
but works in firefox.

<script type="text/javascript">
function check_test()
{
	var new_url="http://www.abc.com/xyz.php?id=5";
	alert(new_url);
	document.getElementById("check_id").value=new_url;
		
}				
</script>
</head>

<body>
<form name="mod_frm" method="post" id="mod_frm" action="<?php echo $self;?>" >
 <input type="radio" name="pkg_name" value="1" class="styled" checked="checked" />
  <input type="radio" name="pkg_name" value="2" class="styled"   />
<input id="check_id" name="check_id" type="hidden" value="-1">

 <input name="button2" type="button" class="form_btn" id="button2" value="Select Your Module" onclick="check_test();return false;"/>
 </form>
</body>

Plz tell me what's the problem?

2
Contributors
1
Reply
3
Views
7 Years
Discussion Span
Last Post by Baradaran
0

Hi,
try assigning different values for name and id. This should solve the problem.

<input id="id_of_check_id" name="check_id" type="hidden" value="-1">

Good luck,
Ali Baradaran

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.