sandy1028
08-04-2008, 05:28 AM
How to open the page in another window when radio button value 4 is selected. When other option is selected open in same window.
|
Click to See Complete Forum and Search --> : radio button sandy1028 08-04-2008, 05:28 AM How to open the page in another window when radio button value 4 is selected. When other option is selected open in same window. bradgrafelman 08-04-2008, 01:09 PM Assign an onclick value to each button, using either window.open() or window.location to open a new window or load the URL in the current window (respectively). sandy1028 08-08-2008, 02:20 AM function checkForm(TheForm) { if (document.example.date2.disabled == true) { if (document.example.date1.value == "yyyy-mm-dd") { var msg = "date not chosen from calendar icon"; alert(msg); return false; } } else{ if (document.example.date1.value == "yyyy-mm-dd" || document.example.date2.value == "yyyy-mm-dd") { var msg = "start or end date not chosen from calendar icon"; alert(msg); return false; } if(document.example.date1.value > document.example.date2.value){ var msg = "choose proper date-Start date is greater than end date"; alert(msg); return false; } if(document.example.date1.value == document.example.date2.value){ var msg = "choose proper date-Start and end date is equal"; alert(msg); return false; } if (document.example.opt2[3].checked && document.example.date2.value != "yyyy-mm-dd") { var msg="select only Start date- duration option not available"; alert(msg); return false; } } } <FORM NAME="example" class="frm" onreset="disableField()" onSubmit="return checkForm(this);" action="a.php"> Please tell me when option4 radio button is selected and clicked the submit button it ahould open in another window. And options 1,2,3 in same window PHP Builder
Copyright Internet.com Inc. All Rights Reserved. |