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.
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:
the below script I'm trying to validate if the user enters a quantity in the text box they must select a reason for ordering and if the user selects a reason code but forgets to enter a quantity it should alert to enter a quantity. Right now it validates the reason code but not the quantity. Please help.
I've used the excellent validate plugin (http://bassistance.de/jquery-plugins/jquery-plugin-validation/) to add JS validation to forms. I'm aware there's a built-in setting to validate an email address. However, I'd like to validate a list of email addresses, and I don't think the plugin contains a built-in solution. What's the best way to implement this?
How to validate an input field for a set group of zip codes. Basically I have a list of about 200 zip codes that are valid for this project I'm working on. I tried using the range method and wasn't able to get it to do what I needed it to do. I don't want anyone else to see what the list of correct zip codes are, this is to verify that they are local.
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.
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.
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
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:
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.
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.
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?
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?
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.
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>
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! ....
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]
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.
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')
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.