Jump to content

Search the Community

Showing results for tags 'RADIO BUTTONS'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 3 results

  1. Dear All; Need your help. I am programming students' roll call in ASP with SQL 2008 R2. There are about 100 students. By default option selected is 'Present' using drop down list. I tried to use radio buttons but only one button remains selected so I am using drop-down list ( How to select multiple radio buttons?). After selecting "Present", "Absent","Late" etc, how do I insert all 100( or whatever number) of rows in the SQL table simultaneously? How should I use "for", "loop" or any other method? Please guide. Regards DAMODAR
  2. So I've gotten my code to display the correct current date in the 1st text box, but then when I choose one of the radio buttons to choose my "Pick-Up" date, the 2nd text box does not display the date. Basically, 1st box should show current date, 2nd box should show the date chosen from the radio buttons (imagine dropping off film that needs developed and you are choosing whether you want it 1 day, 2 days, or 3 days processing). I am including my full code so you can see what I'm doing. Can someone please show me what I'm doing wrong... ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- <script type="text/javascript"> /*<![CDATA[*/ function my_curr_date() { var currentDate = new Date() var day = currentDate.getDate(); var month = currentDate.getMonth() + 1; var year = currentDate.getFullYear(); var my_date = month+"-"+day+"-"+year; document.getElementById("dateField").value=my_date; } function orderReady(orderTime){ dateToday.setDate(dateToday.getDate()+orderTime); var ready=dateToday.getMonth()+"/" +dateToday.getDate()+"/"+dateToday.getFullYear(); document.getElementById("duedateField").value=due_date; } /*]]>*/ </script> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- <body onload='return my_curr_date();'> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- <p>Item<br /> <input type="radio" name="item" value="print_5x7" onclick="orderReady(1)" />5x7 Prints(1 day) <input type="radio" name="item" value="poster" onclick="orderReady(1)" />Poster (1 day) <input type="radio" name="item" value="mug" onclick="orderReady(2)" />Coffee Mug (2 days) <input type="radio" name="item" value="shirt" onclick="orderReady(3)" />T-shirt (3 days)</p> <p>Today's Date<br /> <input type='text' name='dateField' id='dateField' value='' /><br /> Pick-up Date<br /> <input type='text' name='duedateField' id='duedateField' value='' /></p>
  3. Hi all, I need a pair of select boxes to behave like, 1- Just one of them can be checked at any time (like radiobuttoms)2- Both can be unchecked at will (like select boxes). The code bellow is what I have written but it is not working, <html><head><script>function reCheck(k){if(k<3){document.forms["myform"][k+3].checked = false; } else{document.forms["myform"][k-3].checked = false;}}</script></head><body><form name = "myform" action="dothis.php" method="post"><table id="MyTable"><?phpfor($i=0;$i<=2;$i++){$j = $i + 3;echo "<tr>";echo "<td>";echo "<input type=\"checkbox\" name=\"".$i."\" onclick = \"reCheck(".$i.")\" />".$i;echo "</td>";echo "<td>";echo "<input type=\"checkbox\" name=\"".$j."\" onclick = \"reCheck(".$j.")\" />".$j;echo "</td>";echo "</tr>";}?></table></form></body></html> As you can see, in this case there are three rows with a pair of select boxes each, and I need that each pair have the behaviour described above. Looking forward to hear from you, tardebut
×
×
  • Create New...