473,386 Members | 1,602 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how to get combo box automatically if checkbox is clicked

149 100+
hi,
can anyone suggest me how to get combo-box if i click check-box..that means previously i used to do as checkbox and combo box i kept side by side..but now i need to have..if i click check-box it should automatically open the combo-box...can anyone suggest me regarding this..here is my code..


Expand|Select|Wrap|Line Numbers
  1. <td></td> 
  2.                         <td><font color="#800000" size=""><b>Multi-Act-Prop</b></font></td> 
  3.                         <td><input type="checkbox" name="multiActProp" value="LOW_BAL," id="low" 
  4.                                    onclick="if (this.checked) document.getElementById('valid').disabled=true; 
  5. else 
  6. document.getElementById('valid').disabled = false;">Low Balance <select NAME="multiActProp" size="1"> 
  7.                                 <option value="select">--- Select Options ---</option> 
  8.                                 <option value="REVERT">REVERT</option> 
  9. <option value="EXIST">EXIST</option> 
  10.                             </select> 
  11.  
  12.  
thanks,
madhu.
Jul 13 '10 #1
3 1669
acoder
16,027 Expert Mod 8TB
What do you mean by "open"? Do you mean simulating a click on the combo box or something else?
Jul 13 '10 #2
madhuriks
149 100+
hi,
i mean if i click checkbox..automatically it should open combobox in the same window or the other window...can u suggest me how to do...
Jul 13 '10 #3
acoder
16,027 Expert Mod 8TB
From that, I assume you mean it should appear when the checkbox is checked. Then, keep it hidden initially (CSS display property should be "none"), then when checked, show it:
Expand|Select|Wrap|Line Numbers
  1. document.getElementById("combobox").style.display="block";
Jul 13 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jack Turnbull | last post by:
Hi, I have a Checkbox in a Repeater set to AutoPostBack = true. I have pointed OnCheckedChanged to a Sub but it doesn't fire. If I move the checkbox out of the Repeater it fires! Any ideas? Thanks
0
by: wurlds_wurst_coder | last post by:
A co-worker apparently checked the Show Disassembly Automatically checkbox at some point. This is really inconvenient to disassemble every dll we use everytime. How do I turn this option OFF??...
2
by: G .Net | last post by:
Hi Is there a way to prevent the combo displaying its list of items when the "combo arrow" is clicked? The problem I'm trying to resolve is that depending on a Boolean value, which is set...
1
by: DotNetDev | last post by:
Hi, I have a datagrid. <asp:DataGrid id="DataGrid1" runat="server" Height="237px" Width="280px" AutoGenerateColumns="False" AlternatingItemStyle-BackColor="#e9e9e9" ShowHeader="false" ...
5
by: CCLeasing | last post by:
Hello, I have searched google but can not find a straight forward answer to my problem. Hopefuly someone will be kind enough to offer their expertise. Please forgive if this seems a bit convoluted...
0
by: CCLeasing | last post by:
Hello, I have searched google but can not find a straight forward answer to my problem. Hopefuly someone will be kind enough to offer their expertise. Please forgive if this seems a bit convoluted...
5
by: GoGs | last post by:
How can put checkBox in comboBox... Thanks -- GoGs
9
lee123
by: lee123 | last post by:
i have on a form customers information and i have added a checkbox to the form to make visible these textboxes if additional information is needed for the customer. question: how do i make it...
10
by: squrel | last post by:
Hello everyone... i need help here... i have 2 listviews called lvterms and lvbold.... using crystal report to print the details of this listview... when the checkbox is not clicked for lvbold my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.