Hi
I have a html in which there is two selection box and two radio button. Radio buttion is of array type.
What I want if user will click the radio button then only he/she be able to make selection from select list. Initially I tried to disble the selection control. And when user will click the radio then only it was enabled. but I faced problem that value is not passed to the next form of the select list. so I enable the select list now it is working. but I want selection made only possible when user clicks the radio button.
10 3371
Please remember to provide a meaningful Title for any threads started (see the FAQ entry Use a Good Thread Title).
This helps to ensure that other members, and also the general public, will have a better chance of finding answers to any similar questions.
Moderator.
I have a html in which there is two selection box and two radio button. Radio buttion is of array type.
What I want if user will click the radio button then only he/she be able to make selection from select list. Initially I tried to disble the selection control. And when user will click the radio then only it was enabled. but I faced problem that value is not passed to the next form of the select list. so I enable the select list now it is working. but I want selection made only possible when user clicks the radio button.
Instead of disabling the select element, set it to readonly.
Instead of disabling the select element, set it to readonly.
Sorry for that!
I have given the html format of the page. I want selection made only possible if user selects first any of the radio buttion then he may able to select the from any select. Means If he clicks radio value having Static then User will select page from Static1 select if he checks radio with value Dynamic then he will select from Dynamic Select. - html
-
<input type="radio" value="Static" name="Static" />
-
<select name="Static1" id="select">
-
<option>Select Static Page </option>
-
<option>page 1</option>
-
<option>page 2 </option>
-
-
</select>
-
<input type="radio" value="Static" name="Static" />
-
<select name="Dynamic" id="select" ">
-
<option>Select Static Page </option>
-
<option>page 1</option>
-
<option>page 2 </option>
-
-
</select>
Instead of disabling the select element, set it to readonly.
Ignore this. I don't think the select element has a readOnly property.
What you can do is onsubmit re-enable the select elements.
Ignore this. I don't think the select element has a readOnly property.
What you can do is onsubmit re-enable the select elements.
I tried to reenble the select onsubmit but its value is not going next in php.
I tried to reenble the select onsubmit but its value is not going next in php.
Can you show the code that you tried.
Can you show the code that you tried.
The problem is solved now.
The problem is solved now.
Glad you managed to solve it. For the benefit of anyone else who comes across this thread, can you tell us what the problem/solution was.
Glad you managed to solve it. For the benefit of anyone else who comes across this thread, can you tell us what the problem/solution was.
Actually option's value was empty. then I assign some value to it. -
-
<select>
-
<option value="Page1">Page1</option>
-
</select>
Actually option's value was empty. then I assign some value to it.
Thanks. Hopefully, it'll help someone with a similar problem.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: /.. |
last post by:
Hi all,
I'm working on a report display page that currently uses 5
checkboxlists with a total of 86 items to display values from 5
different tables in an Access database.
The page works fine...
|
by: Galina |
last post by:
Hello
I have 6 dependent list boxes on my ASP page:
Faculty;
Lecturer;
Course;
Course occurrence;
Group;
Week commencing date.
When faculty is selected, lists of lecturers and...
|
by: David Hearn |
last post by:
I have a datalist that I have inserted a radio button into. The datalist
populates with a list of items and each one has a radio button next to it. I
need to use the radio button to allow the user...
|
by: Jennifer |
last post by:
I had this beautiful datagrid on an ASP page (VB.Net as the code
behind). When I clicked on a Select Button, the row was selected and
the background color changed the way it was supposed to. The...
|
by: slitchfield |
last post by:
Sorry if this is real beginner's stuff, but I'm an old-school HTML guy
and this is all another world to me.
Is there an easy way to get the user to specify a number from 1 to 5
(in a pick list...
|
by: Joe Attardi |
last post by:
Hi all,
On a form on one of my pages I have two <select> elements, and each one
is paired up with a radio button. The idea is to choose an item from
one list or the other and select the radio...
|
by: Carlos |
last post by:
Hi all,
I have a form with an input radio control in a template field.
When the user selects an option, and press a button
the selection disappears.. I would like the selection to
persist after...
|
by: Bishman |
last post by:
Hi,
I need to programmatically allow or disallow the selection of multiple
checkboxes on a form . At certain times I only want to allow a single
selection, at other times I may wish to allow...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |