Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

classic asp checkbox uncheck and check

Posted on 2016-09-15
2
Medium Priority
?
113 Views
Last Modified: 2016-09-15
We want to make in classic asp a form similar like this:

<form method=post>
<input type="checkbox" name=check1 value="the first value">
<input type="checkbox" name=check1 value="the second value">
<input type="checkbox" name=check1 value="the third value">
<input type="checkbox" name=check1 value="the fourth value">
<input type="checkbox" name=check1 value="the fifth value">
<input type="checkbox" name=check1 value="the sixth value">
</form>

Open in new window


Now what we want is:

1.-Have the sixth value selected by default and the others unchecked.
2.-If the user selects any value the other values must be unchecked in other words only one value can be selected.

How can we do that if possible with code example? Because like it is the user is able to check all values at same time and we don't want that if the user checks one the other values must be unchecked. That value later we'll pass through VBscripr to same page or post form to another .asp page and the request of the values,

Thank you
0
Comment
Question by:Alex E.
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 34

Accepted Solution

by:
Big Monty earned 2000 total points
ID: 41800718
Why not just use radio buttons?
1
 

Author Closing Comment

by:Alex E.
ID: 41800729
You are right worked perfect with radio buttons!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question