[code]I have created an array of cars so if personA has more cars, they can click add and select another one. If they have 1 car and just enter name and 1 car, the form works but when I click Add row and select another car, it doesnt work?
I need to check that a user's birthday has been filled out completely, using drop down menus. I can validate each of the menus individually (see code below), but what i really want to do is make one check that all three are selected so that I don't have 3 extra error labels.
I have two prompt dialogue boxes that ask the user the enter their name and their employee number.I am experiencing two errors. The first is, if a user enters their name incorrectly, using numbers for example, there is an error message that asks the user to re-enter their name using a string. If the user ignores the error message and enters a number a second time, the program accepts the entry, which it shouldn't.
The second error has to do with the employee number prompt. The prompt asks the user to enter an employee number that is equal to 6 digits, the program however accepts any number, less than or greater than 6 digits, which it shouldn't.I don't want the user to get away with entering anything incorrectly.
I am getting some problems with populating my drop down boxes. I create the drop down through dom object.when I call this function onClick event in a button its work fine and populate the records from database so it does't matter how many times you click the button its work fine and populate all rows. The problem start when I call this function in a loop like in php file its populate only last row. but I want to populate all rows.
the code I have is barely half completed, but it's not to long just the same thing over and over with the drop down boxes, so I was hoping someone could help me with this. Or at least guide me in the right direction. Code:
I'm populating a couple of dropdown boxes from an xml file, but can't get them working independently. As you can seehtmwhen you select an item from the first select box (a polyline), itdisplays the corresponding item from the other box (a polygon), too.I found this answer on the google maps forum:"Don't know of an example, but building two select boxes isn'tdifficult: pass into your createMarker() function the relevant flag,and add the data to one of two variables (instead of everything beingadded to select_html as now).You shouldn't need two handleSelected() functions -- both select listscan use the same function because each select box passes itself("this") into the function."which is what I thought I did (making sel_html and select_html) butmaybe the two variables being discussed here are different ones?cross-posted on the google maps forum here and here but not answered.
I am trying to make a unit converter with two dropdown boxes, two textfields and a button. I want to enter a number into the first textfield, select a unit option, then select another appropriate unit option based on the first selection, press the button and get the result in the second textfield. What would be the best approach for this. So far I have:
I'm working on a website where users can add films to a film directory through a form. One of the fields that can be filled in is a "Release date" field, where a correct release date can be filled in. The form uses dropdown boxes for selecting the date; this is much less confusing in terms of how to format the date than if one would just use a text input field. Here's a screen shot:[URL]..
1) Validate the entered date (i.e. no "31st of February" dates).
2) Check whether the date entered doesn't exceed today's date (so no release date in the future is allowed). This could be combined with PHP to find the today date.
3) If the "I don't know the release date" box is checked, simply skip the whole validation process (no need to validate something that won't be used).
I already figured out the PHP that does all of the above, but I would also very much like to have some code that checks the date before the data is processed so that users who have made a mistake don't have to fill in the whole form a second time.
I've got two dropdown boxes ('language' and 'word'). When the submit button is pressed, I want a div to show with the right word in it. I can do this fine with one dropdown box, but two has got me stumped.
I have a drop down box (select) in my website: [URL] that works fine; but the problems is if the user click on a wrong option, it will show a box and if the user click on another option from the box, the last one will be on display and won't go off..
Like this select something and then at the same box change the selection you will see the code will build up boxes on the screen.. How I do for it not happens if the user change the option in the last box, the one before disappears!
I've been trying to do this since yesterday with no luck. I've tried stackoverflow, DIC and this is my last chance. I'm using drop down boxes to have a user select a ship date. I don't want them to be able to choose a date in the past however. Below is some code a guy at DIC sent me which doesn't have many changes from my original one but he said it was working and I havent been able to get it working.
Basically, the batch number, expiry date and pallet/box number is mandetory. If they arn't entered, it needs to fail (return false). It doesn't seem to be doing anything, just moving on to the next part which is checking other parts of the form which isn't repeated.
I'm looking for four level connected drop down boxes. Unlike all the scripts I have seen on the internet I need all the options to be available if nothing is selected in the previous drop down. So I want something like combination of connected drop downs and ordinary drop down. If the selection is made, display appropriate options in other drop downs... Hope I'm clear...
I am looking to make a page with a display on it using input boxes, but I want the input boxes to get some of the values from an array I enter at the beginning. To start with I am only entering 2 items, as it will make it easier until I have it all up and running. I have no problems getting a table to come up, with a label and then an input box beside it. I can even prompt the user for the number of input boxes they require. I also can make it so that the input box is disabled, so that the user cannot change the contents of it. But, I am totally stuck as to how to get this how I want it...
I am wanting labels at the top of each row, not the left hand side, and I am wanting rows of 3 input boxes, with the first 2 containing the text from my array, which is what I'm wanting ti be the disabled boxes. Basically I am starting a very simple page for an online order facility.
This is the code I have been working on, I have totally messed it up by now trying different things but it will give an idea of what I have been attempting I figured lol. I have got it to have 6 empty input boxes all on top of each other, but I realised after that if i set all the values etc in the table, then im not getting the array to define the contents :S and, they are still all on top of each other which i dont want... And my attempts at getting the array to define the number of input boxes has so far been futile. I end up with a blank page, just a button. just getting frustrated lol.