Instructions: when a user selects a date from the investment cycle drop-down box, the subsequent investment values must display the next three fiscal quarters. (e.g. for "January 2010", the subsequent quarters will be Q2 2010, Q3 2010, Q4 2010; for "June 2010", the subsequent quarters will be Q3 2010, Q4 2010, Q1 2011.)
The subsequent quarters should be presented with checkboxes which are all unchecked.
My markup for the checkboxes:
The values to populate the checkboxes (value and label) have to be hardcoded somewhere, no? what am I missing?
(and, since markup doesn't change when u set value for chkbx dynamically, how do you check that you have set correct value for the checkbox? (don't know if it shows in Firebug, since don't know if code have there now is correct (have this funky code in there for now.. not sure how to approach this...$('#checkbox1').attr('value', 'Q2 2010');
And how do I populate label? (<label for=""....></label> -- do I need to give label an id? or can you grab "for" attr for a label with jQuery?)
I have a form that uses jeditable to edit-in-place several fields and select boxes. Everything is working great. Now I need to a way to add a new option to the select list. What I would like is the user select "Add New..." from the select list that would pop-up a dialog window where several fields are filled in. When the form is saved the select field is updated with the new ID and description. I use Facebox for pop-up windows to display notes when the user clicks on a topic. I know Facebox can be used to display a form. It would be ideal to use this ability when creating a new option for the select box.
I have a drop down with approx. 200 <option> elements, each option element has a value such as value="1", value="23", etc. Given a list of values, such as 5, 34, 43, 68, 123, how can pass those values to a function and then insert selected for each corresponding element?
cna anyone tell me how to use the Select = "selected" option for a simple dropdown. for example when someone chooses c it will have a code like <option selected="">c</option> (am I doing it right, well if you got a firebug some site with dropdowns offers that option) so can anyone tell me how that works. I will be using it for a purpose of just selecting parts on my array, well incorporating it
My mission: Open/collapse TD cells based on items selected in a list box. Getting no response from jQuery so I've done something wrong but cant quite get there. Listbox 'mainselect' contains option values that refer to names of TDs in a table. When a mainselect option is clicked, it will toggle to open or close the referenced TD list box by option value. Does hide/show make a TD 'blank' or actually set it's width to '0'? I want it to close, moving other cells left.
Is there a way to remove (not disable and not delete) an option in a "select" list, and restore it later when needed?
I have a form with many huge lists ("select" with many "options") that depend on eachother. I am dynamically updating the form through server, and wish to update the list values by sending a mask string. This way I could remove and restore the options without the need to pass the whole list again.
I tried many ways but none work: * option.diabled="disabled" is not good because it is still shown * option.style.visibility='hidden' is not good because it is still taking a row * option=null is not good because I will not be able to restore it
I need a method similar to the following one for remove/add fields in a form:
Am trying to populate my second list box from the 1st. I have done the folowing code, iam trying to call a function in the onchange event of my 1st listbox, but it does not change the URL :( however if i manually change my URL then the thing works fine.
I have an select option list, each option has a numerical id, value and text. Each option has an array of its own. So when I choose an option from this list, I want to insert the options array into another option list with an id, value and text. Whats the best way of doing this? How do I select an array based on the value or text of a select option? For for example, take a list of car makes. If I choose the make Audi, how do I select the array of Audi models and insert these models into another select option list. All makes and models have their own numerical id, value and text.
Here is what I am trying to do. I created a .js to talk to 3-4 Drop down boxes with info I put in them. On the last drop box i currently just having it read "download" The is the drop down box I would like to populate files in a certain folder. Can anyone give me any insite on how to go about doing so? This is what is on my HTML.
I'm using the following code to remove an option from a select control based on a selection in a different select control and the option text in the select option that is being removed. The code works as I want it to, but I would prefer to use the option value for identifying the option to remove instead of using the option text. I've tried several different ways to do this, but can not find the proper syntax.
I have 2 drop down list that are populated through mysql. They both contain data upon initial page load. However when you select an option from drop down #1 it populates drop down 2 with data associated to it. Sometimes the 2nd drop down list has selected data already and I need it to be cleared back to the first option when the first drop down is selected.
the following code is what I use to populate the second drop down