Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 681

How to check the radio button and submit the form ?

$
0
0
Hi :wave:
I have this form and i would like to check automatically the first radio button and submit the form
So i ask you how can i perform this in vbscript ?
Code:

<form method="post" name="poll_1575" onsubmit="return poll_results_1575('vote','http://www.URL.com/poll/popup.php','M','500','290','toolbar=no,scrollbars=yes');" action="http://www.URL.com/poll/popup.php" target="M">
            <table width="142" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td><img src="/images/ti-op.gif" width="142" height="25"></td>
  </tr>
<tr align="center">
    <td background="/images/bg-op.gif">
      <table width="100%" border="0" cellspacing="0" cellpadding="3" align="center">
        <tr>
          <td class="blacktxt" align="center" height="40" valign="middle" colspan="2"> :</td>
        </tr>
        <tr align="right" valign="top">
          <td colspan="2">
              <table width="100%" border="0" cellspacing="0" cellpadding="1" align="center">
<tr>
  <td width="85%" class="redtxt">P</td>
  <td width="15%" class="radio"><input class="input2" type="radio" name="option_id" value="1"></td>
 </tr>
 <tr>
  <td width="85%" class="redtxt">C</td>
  <td width="15%" class="radio"><input class="input2" type="radio" name="option_id" value="2"></td>
 </tr>
 <tr>
  <td width="85%" class="redtxt">S</td>
  <td width="15%" class="radio"><input class="input2" type="radio" name="option_id" value="3"></td>
 </tr>
</table>
</form>


Viewing all articles
Browse latest Browse all 681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>