List Menu And Other Fields
Dec 8, 2003
I have a list menu on a form and some other fields which are text boxes. When I select an item in the list box I want the associated data to be populated in the text fields. The list box is dynamically populating ok and the database connections is working fine. I am using Dreamwever and believe this can be done with the server behaviours.
The aim is to be able to choose from the list box, then either edit or delete the associated record. Or maybe I am going about this the wrong way.
View 2 Replies
ADVERTISEMENT
Jun 30, 2009
I've been beating my head against a wall for a few days trying to get this working. I'm trying to create a dynamic menu where a user selects one item and another select list is shown, then another and another (and so on). Here is my JS, it *should* be taking the ID of the div, comparing it to the selected value and then showing another div by settings it's class property to visible:
[Code]...
View 1 Replies
View Related
Apr 7, 2011
I'm having a problem using javascript with a form. I'm using javascript to determine whether or not a person has selected "yes" or "no" from the select list. If "yes" is selected, the form is supposed to slide down and reveal two more fields. If "no" is selected, the form is supposed to slide back up hiding those two fields again.
When "yes" is selected, the form displays the two new fields properly. In Safari, it does the slideDown animation, yet in Firefox, the new form fields just suddenly display. If I select "no" again, nothing happens. The slideUp animation doesn't play. So currently I am having to use $("#parent1").hide(); to get the "no" to trigger.
[Code]...
View 3 Replies
View Related
Feb 6, 2007
In my list box if i select one item corresponding to that 4 fields has
to be appear below the list box and if i select another item only 1
field has to be appear below the list box and if i select another item
no fields has to be selected.
View 2 Replies
View Related
May 16, 2010
I need to be able to change the fields of a form based on a drop-down list. Like if someone picks option A field 1 shows and if they change it to option B field 1 and 2 show up without reloading the page.
If you need me to explain more I will try to do a better job. If I could be pointed in the general direction that would be great, I dont exactly need to be spoon-fed, although I do like spoons if you catch my drift .
View 2 Replies
View Related
Apr 27, 2011
rm validation! I want this to be validated upon selection of the drop down list (not when it comes to submit button)I have 2 drop down lists:Starting date (June 5th, 6th 7th)Ending date (June 5th, 6th 7th)I want to write a script that would NOT ALLOW one to choose:- Starting date June 6th and Ending date June 5th- Starting date June 7th and Ending date June 6th- Starting date June 7th and Ending date June 5th
View 6 Replies
View Related
Jan 24, 2006
I have list of possible links.
What I want is to be able to hover over a particular subject, and a sub list
of links becomes visible, then by clicking on the link, the page is changed.
How can I do this?
View 2 Replies
View Related
Jun 21, 2010
i'm trying to build a small script for predicting Worldcup football winners. participants have to predict the teams in both the semi finals and final. a select menu with all participating countries will be given for 2 semi finals. suppose if a persons selects Argentina and Brazil for Semi 1, then the values of Final select menu should be Argentina and Brazil. Similarly for Semi 2, if Denmark and Italy selected, then the select menu for final2 should be Denmark and Italy.
my html (with only a few no. of countries is below:
[CODE]
<b>Semi Final 1:</b><select id="semi11" class="select menufield_101" name="semi11" onchange="ChangeValue(this);">
<option value="empty">Select a SemiFinalist</option>
<option value="Algeria">Algeria</option>
[Code]....
View 1 Replies
View Related
Apr 3, 2004
How do I clear a list menu?
View 1 Replies
View Related
May 11, 2010
I know I've seen (free) scripts that do this, but I can't find them.
(Please see the mock up (link below) for reference.)
On the left, under the "Table of contents" there is a drop down menu.
Nice clean lines, simple. The choices will show a line under it.
"contributing artist" will give the option to sort a-z or z-a
The solution has to be compatible with the list below; it should be able to sort the entries and their thumbnails. Ajax?
[url]
This is on a linux server.
View 2 Replies
View Related
Jan 22, 2009
I have a HTML form that contains input fields, checkboxes and a list menu. I can check to make sure a user has entered data in the input fields and I can also check if the user has selected a checkbox.I can't figure out how to check if a user has selected an item from with in my list menu.
View 1 Replies
View Related
Apr 29, 2011
It's just a simple jquery pricing calculator. The problem is the original code given was for checkboxes only I suppose. I am wanting to use list/menu as well. The list menu works and adds the values fine in FF, but not in IE
[Code]...
View 4 Replies
View Related
Aug 25, 2011
What I'm trying to achieve is that when I select the "other..." value, that �field? change �onchange? to a text field in order to let the user to input his custom color manually.This is the classic list/menu:
Code:
<form method="post" action="example.php">
<span id="spryselect1">
<label for="colors"></label>
[code]...
View 2 Replies
View Related
Jan 7, 2010
I am having problems with a script 'Cut & Paste CSS Horizontal List Menu' from [URL]
It works on my site with Firefox but not IE 8.
My site url is [URL]
View 1 Replies
View Related
Nov 19, 2010
I'm fiddling around with designing a site and trying to get my JS bearings down. I'm wondering why the second option isn't making the drop down list disappear.
<html>
<head>
</head>
<script language="JavaScript">
function fncShow(){
document.getElementById('box').style.visibility = 'visible';
} function fncHide() {
document.getElementById('box').style.visibility = 'hidden';
}
</script>
<body>
<select name="box">
<option selected>Choose one</option>
<option value="first" onclick="JavaScript:fncShow();">first option</option>
<option value="second" onclick="JavaScript:fncHide();">second option</option>
</select>
</body>
</html>
View 2 Replies
View Related
Aug 10, 2004
I have a sql/recordset setup that returns an id number and description.
For example:
4test
7test44
9test123
I then have a drop down list that contains the id numbers. I'd like the recordset to return the matching record for whatever is selected in the drop down list. So if the drop down list equals "4". Then "test" would appear in the value of a hidden form field. If "9" was selected in the combo box then "test123" would be entered into the hidden form field. I'm not sure how to specify the value from the drop down list in my sql statement and also do not know how to update the value when the user changes the drop down list selection.
View 5 Replies
View Related
Nov 30, 2004
i have created a dynamic menus for ie, with the div tag......... it works fine,, but when it comes over the drop down list box.... the part goes below it. i have tried giving z-index, but nothing works fine can any body suggest me what to do?
View 2 Replies
View Related
Feb 8, 2005
I have a list menu that when the page is opened is stretches the page out wider than the screen because there is an entry that is very long. Is there a way to make the list box only stretech out a certain length in order to stop this?
View 3 Replies
View Related
Aug 23, 2010
I'm having trouble making JavaScript select an option from a list menu. I created the list menu using an array with php. I.E.
HTML Code:
<? $states = array('NY', 'NJ', 'CA');
for($s = 0; $s <= 2; $s++){?>
<option><? echo $states[$s] ?> </option>
<? } ?>
So then I have some JavaScript code, that automatically determines which state you're in. My question is, how do you get JavaScript to select the state the code has determined you're in? I tried these, to no avail.
document.form.states.value = currentstate;
document.form.states.select= currentstate;
currentstate being the variable that determines the current state you're in.
View 6 Replies
View Related
Jan 23, 2011
I'm making a horizontal navigation bar using jQuery. I want to have the drop-down menu slide down ( slideDown() ) except the drop-down menu appears on top of instead of behind the main menu before sliding into the correct position.
Here is the HTML:
HTML Code:
<div id="navigation">
<ul class="top">
<li><a href="../news/index.php">Home</a></li>
[code]....
View 5 Replies
View Related
Jan 19, 2006
I am new to JavaScript and would really appreciate any help to solve my
problem.
I am using the blow code in my form to validate form fields. What I
would like to accomplish is that if when the list/menu (attribute6)
value is "Ja" then to make the TextField Pas Nr (attribute4)
required. And if when the list/menu (attribute6) value is "Nee" to
make the TextField Pas Nr (attribute4) not required.
I have tried to adjust the code with no success. I give up and hope
that someone can help me to the right direction! ....
View 1 Replies
View Related
Apr 27, 2010
I have this list menu that needs to pop open a blank window in front of the already open webpage. It also needs to work in IE and hopefully Firefox if possible.[code]
View 1 Replies
View Related
Oct 9, 2005
Could anyone help me out with a peice of script that will reload the page once a choice is made from a list/menu, so dependant on the choice ($_POST data) another list menu will also display when the page reloads .. I tried a few javascripts from google, but none reloaed the page.
View 5 Replies
View Related
Feb 4, 2010
I'm trying to pick up the selected text from a list/menu and store it in a hidden field to add to a database along with the value and it's not getting picked up.
In the head I have
Code:
<script language="javascript">
function SetCatText() {
var cl_name = document.getElementById('cl_name')
[Code].....
View 10 Replies
View Related
Jun 10, 2010
I was wondering if there was a jquery plugin that will allow me to show images in a select menu item kind of like the way myspace has there mood icons
View 1 Replies
View Related
May 28, 2010
I have a small doubt in jsp coding..I want to disable certain links on user login.These links come under a menu list.Clarifying more on this..I have created a web application which has got a login page..After login it redirects me to my home page..now when an administrator logs in he/she should be able to view all links on the menu list whereas when an user logs in he/she should only view a certain number of links based on his/her privileges..how can i write this code.
View 2 Replies
View Related