Forum Moderators: open
<body bgcolor="#FFFFFF" topmargin="0" leftmargin="0" rightmargin="0" marginheight="0" marginwidth="0" text="#000000" link="#666633" vlink="#999999" alink="#999966">
<!--jsp用 ナビ部分
<jsp:include page="/inc/header.html"/>
<jsp:include page="/inc/navtabs.html"/>
-->
<!--jsp用にする時は下記ssiタグは削除する-->
<!--#include virtual="/jp/inc/specialoffers_header.ssi"-->
<!--#include virtual="/jp/inc/specialoffers_present_navtabs.ssi"-->
<br>
<!--り-->
<a name="ri"></a>
<table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#349999">
<tr>
<td>
<table border="0" width="100%" cellspacing="1" cellpadding="3" class="text">
<tr bgcolor="#B7EBEB">
<td width="100%" align="left" valign="top" colspan="2">り</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="5%" align="left" valign="top">
<input type="radio" name="issuer" value="1_33¦(株)りゅうぎんディーシー">
</td>
<td width="95%" align="left" valign="top">
(株)りゅうぎんディーシー
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="5%" align="left" valign="top">
<input type="radio" name="issuer" value="1_26¦菱信ディーシーカード(株)">
</td>
<td width="95%" align="left" valign="top">
菱信ディーシーカード(株)
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100%" align="left" valign="top" colspan="2"><a href="#other">※その他(あてはまる発行会社がない場合は、このページの最下段の枠内に発行会社名を記入して下さい。)</a></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100%" align="right" valign="top" colspan="2">
<input type="submit" name="action_entry_confirm" style="font-size:10pt;" value="確認画面へ">
<input type="reset" style="font-size:10pt;" value="クリア">  
<a href="#top">▲Top</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<!--ろ-->
<a name="ro"></a>
<table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#349999">
<tr>
<td>
<table border="0" width="100%" cellspacing="1" cellpadding="3" class="text">
<tr bgcolor="#B7EBEB">
<td width="100%" align="left" valign="top" colspan="2">ろ</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="5%" align="left" valign="top">
<input type="radio" name="issuer" value="4_36¦(株)労金カードサービス">
</td>
<td width="95%" align="left" valign="top">
(株)労金カードサービス
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100%" align="left" valign="top" colspan="2"><a href="#other">※その他(あてはまる発行会社がない場合は、このページの最下段の枠内に発行会社名を記入して下さい。)</a></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100%" align="right" valign="top" colspan="2">
<input type="submit" name="action_entry_confirm" style="font-size:10pt;" value="確認画面へ">
<input type="reset" style="font-size:10pt;" value="クリア">  
<a href="#top">▲Top</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<!--わ-->
<a name="wa"></a>
<table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#349999">
<tr>
<td>
<table border="0" width="100%" cellspacing="1" cellpadding="3" class="text">
<tr bgcolor="#B7EBEB">
<td width="100%" align="left" valign="top" colspan="2">わ</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="5%" align="left" valign="top">
<input type="radio" name="issuer" value="2_22¦和歌山銀カード(株)">
</td>
<td width="95%" align="left" valign="top">
和歌山銀カード(株)
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100%" align="left" valign="top" colspan="2"><a href="#other">※その他(あてはまる発行会社がない場合は、このページの最下段の枠内に発行会社名を記入して下さい。)</a></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100%" align="right" valign="top" colspan="2">
<input type="submit" name="action_entry_confirm" style="font-size:10pt;" value="確認画面へ">
<input type="reset" style="font-size:10pt;" value="クリア">  
<a href="#top">▲Top</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</td>
</tr>
<!--Start textbox-->
<tr>
<td align="right">
<form>
<a name="other"></a>
<table border="0" width="100%" cellspacing="1" cellpadding="5" bgcolor="#B7EBEB" class="copy">
<tr valign="top">
<td align="left">
※上記リストの中にあてはまる発行会社がない場合は、恐れ入りますが発行会社名を<br>枠内に記入して下さい。
</td>
</tr>
<tr valign="top">
<td bgcolor="#FFFFFF" align="center">
発行会社名:<input type="TEXT" name="Issuer" value="" size="30" maxlength="200"> <input type="submit" name="action_entry_confirm" style="font-size:10pt;" value="確認画面へ">  <input type="reset" style="font-size:10pt;" value="クリア">
</td>
</tr>
</table>
</form>
</body>
</html>
Thanks for anything you can do to help,
E./
Welcome to WebmasterWorld. Please have a look at the posting guidelines [webmasterworld.com], and keep in mind that many of us mortals have problems with lines 4000px wide...
One important question: do you have one (1) form, as in your question, or two (2), as in your code?
for (var i=0;i<form.issuer.length;i++)
{if(form.issuer[i].checked){cardIssuer_Checked=true;break;}}
if(!cardIssuer_Checked){Alert+="\n\n ERROR MSSG";WC_ERRORS+="No_Issuer_Checked;";}
if(!Alert){return true;}else{alert("ALERTMSSG"+Alert);return false;}}
//-->
This checks only to see if the field is filled in and if not it derives a error.
I need to check if both a radio button and the text box are filled out,
and if both are filled out at the same time
then issue a confirmation.
That confirmation will either clear the field or return the user to the page.
Here is also a sample of the page I am working with.
<script src="/jpbile2004/js/other-issuers-validation-1.js" type="text/javascript"></script>
</head>
<body bgcolor="#FFFFFF" topmargin="0" leftmargin="0"
rightmargin="0" marginheight="0" marginwidth="0"
text="#000000" link="#666633" vlink="#999999" alink="#999966">
<form action="/jp-mobile2004/selectOtherIssuer.do" method="post" >
<!--あ-->
<a name="a"></a>
<table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#349999">
<tr>
<td>
<table border="0" width="100%" cellspacing="1" cellpadding="3" class="text">
<tr bgcolor="#B7EBEB">
<td width="100%" align="left" valign="top" colspan="2">あ</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="5%" align="left" valign="top">
<input type="radio" name="issuer" value="1_1¦">
</td>
<td width="95%" align="left" valign="top">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="left" valign="top">
<input type="radio" name="issuer" value="14_1¦">
</td>
<td align="left" valign="top">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="left" valign="top">
<input type="radio" name="issuer" value="1_2¦">
</td>
<td align="left" valign="top">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="left" valign="top">
<input type="radio" name="issuer" value="1_3¦">
</td>
<td align="left" valign="top">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="left" valign="top">
<input type="radio" name="issuer" value="4_2¦">
</td>
<td align="left" valign="top">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="left" valign="top">
<input type="radio" name="issuer" value="4_13_1¦">
</td>
<td align="left" valign="top">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="left" valign="top">
<input type="radio" name="issuer" value="13_3¦">
</td>
<td align="left" valign="top">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="left" valign="top">
<input type="radio" name="issuer" value="13_1¦">
</td>
<td align="left" valign="top">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="left" valign="top">
<input type="radio" name="issuer" value="13_2¦">
</td>
<td align="left" valign="top">
text1 </td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="left" valign="top">
<input type="radio" name="issuer" value="15_1">
</td>
<td align="left" valign="top">
text2
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100%" align="left" valign="top" colspan="2"><a href="#other"></a></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100%" align="right" valign="top" colspan="2">
<input type="submit" name="action_entry_confirm" style="font-size:10pt;" value="text2" onclick="return validate(form)>
<input type="reset" style="font-size:10pt;" value="text3">  
<a href="#top">▲Top</a>
</tr>
<!--Start textbox-->
<tr>
<td align="right">
<a name="other"></a>
<table border="0" width="100%" cellspacing="1"
cellpadding="5" bgcolor="#B7EBEB" class="copy">
<tr valign="top">
<td align="left">
text4a
</td>
</tr>
<tr valign="top">
<td bgcolor="#FFFFFF" align="center">
text5:<input type="TEXT" name="Issuer-text" value="" size="30"
maxlength="200"> <input type="submit"
name="action_entry_confirm" style="font-size:10pt;"
value="text6" onclick="return validate(form)>
123<input type="reset" style="font-size:10pt;" value="XX">
</td>
</tr>
</table>
</form>
</td>
</tr>
<!--End textbox-->
</table><!-- END OF MAIN CONTENT -->
<!--content end-->
</body>
</html>
I hope someone can please be of assitance I will
post a followup to this with the code I am trying to use.
Thanks in Advance Erin