JavaScript Form FAQ
You are here: irt.org | FAQ | JavaScript | Form
JavaScript Form Contents
Appearance of Form Fields
- FAQ 30 Is it possible to set the font in a textarea?
- FAQ 67 How can I control the width of a select box?
- FAQ 192 Can I replace form buttons with something more interesting?
- FAQ 205 How can you format numbers as right-aligned in a text field?
- FAQ 245 How do I get all buttons to be same size?
- FAQ 717 How do you change the color of the text in a text box after an onChange?
- FAQ 858 How can I limit the width of a select form field?
- FAQ 871 Is it possible to set the font for certain elements in a drop down box?
- FAQ 1019 How do I use my own graphic button to reset all the text fields in a form?
- FAQ 1176 Can I use an image object to clear my form instead of using the normal reset button?
- FAQ 1212 How can I stop the end of form tag </FORM> creating a blank space after the form?
- FAQ 1759 How can I create an option in a select statement with a particular style?
- FAQ 1760 How can you format numbers as right-aligned in a text field?
Focusing and Tabbing
- FAQ 111 How when I click on the textBox do I set the focus to the checkBox?
- FAQ 123 Upon loading a page with a form, is it possible to set the focus to a form object, e.g. "User Name" Textbox?
- FAQ 135 I know how to focus on a specific element but how do I know what is currently focused?
- FAQ 246 The onLoad event handler does not always set the focus in a form field, are there any workarounds?
- FAQ 335 Is there a way to automatically put focus on the next input text field and continue to have to user typing when the previous input text field is full?
- FAQ 466 Is there a way to control the tab-sequence of fields in a form?
- FAQ 471 How can I simulate the tab key when the enter key is pressed?
- FAQ 601 How do I set focus to a text box when a checkbox is checked?
- FAQ 774 How do I maintain a tab order if form fields in browsers that do not support tabindex?
- FAQ 964 How can I get the index of the element focused in the form?
- FAQ 1232 How can I avoid onBlur="self.focus()" stopping access to form fields?
Field Values - Setting/Reading/Modifying
Referring to Fields
- FAQ 10 How do I set and access the value of a hidden form field?
- FAQ 130 Is it possible to determine the type of a form element in JScript version 1?
- FAQ 162 How can I get and/or set the content of a user-filled field?
- FAQ 165 How do I access variable values and form field values across windows?
- FAQ 299 When referring to my form using form.field.value it does not work, why?
- FAQ 388 How can I access a form field which has a non alpha name?
- FAQ 439 Why can't I get the selected index of a select form field?
- FAQ 554 How can I determine if a checkbox on a form exists?
- FAQ 589 How can I refer to a dropdown select box that has a non alphanumeric name?
- FAQ 711 How do I tell if a field exists on a form?
- FAQ 746 How do I check the value of a form field with a space in the name of the form field?
- FAQ 887 How can I use the value of a select form field on the same page without submitting the form?
- FAQ 924 How can I pass a hidden value to a form and submit that form when a text link is clicked?
- FAQ 1143 How can I get the elements index number of a form field using 'this'?
- FAQ 1307 How do I access variable values and form field values across windows where the popup window has frames?
Looping through Fields
- FAQ 797 How can I retrieve all the selected items form all the select form fields in a form?
- FAQ 809 How do I display the value of each text field using a for loop?
- FAQ 894 How can I access form fields in a table by looping through column and row numbers?
Setting Field Values
- FAQ 31 How do I include carriage returns in a textarea?
- FAQ 138 How do you get a two character abbreviation from a drop down list of all the US states as input to a CGI?
- FAQ 175 How can I write the contents of a textarea to another frame whilst retaining the line breaks?
- FAQ 195 When creating a textarea in a script how can I make sure each line of text appears on its own line?
- FAQ 409 How can I select a US state from a drop down list and have the 2 character abbreviation appear in a text box?
- FAQ 673 How can I set the default value of a text box when a certain condition is true?
- FAQ 750 How can I pass the current date to a select form fieldmMenu and have it selected when the page is loaded?
- FAQ 1154 How can I set the value of a fileupload form field?
Reading/Using/Checking Field Values
- FAQ 70 How do I check if a forms checkbox has been checked?
- FAQ 197 How do I detect if text has been entered on a text input before the form has been submitted?
- FAQ 200 How do you check that a selection in an options list has been selected?
- FAQ 360 Is it possible to validate both a pull down menu and a text area when a form is submitted?
- FAQ 373 How can I check that a text box entry is empty or has just spaces?
- FAQ 415 How can I vet radio buttons so that if all the answers are 'yes' the form loads another page, but if even one answer is 'no' the form results are passed to a cgi script instead?
- FAQ 418 When using a drop down menu, how do I store the value selected in a variable?
- FAQ 512 How can I validate that a check box has been selected, or that one of several radio buttons has been selected in a form?
- FAQ 1039 How can I ensure that one radio button is checked and that the relevant text field is not empty?
Writing/Modifying Field Values
- FAQ 521 Can I change the selection in the select box by clicking on a link?
- FAQ 661 Can I click some text next to a radio button to set the radio button to clicked?
- FAQ 1020 How can I uncheck a radio form field?
- FAQ 1798 How can I automatically format a date like 1/5/01 while it is being typed in by the user?
- FAQ 1805 How can I take "wrapped" text from a form's input field, and at some event of my chosing, double-space it?
Protecting Field Values
- FAQ 302 Is there any way to prevent a user from making any form entries, i.e. changing a pull down list selection, or typing text into a text field?
- FAQ 799 Is it possible to have read only text in a text field?
- FAQ 854 Is there a way to disable a text form field?
- FAQ 1059 How can I disable form fields?
- FAQ 1199 How can I restrict data entry into two text fields based on two radio buttons?
- FAQ 1222 How can I make a text box disable or readonly in Netscape Navigator?
Modifying Select Menus Dynamically (Adding/Removing/Reordering Options)
- FAQ 237 How can I change the contents of a drop down select list?
- FAQ 487 Is there some intelligent way to sort document.formname.selectname.options array by text/value so that selected option (or options) remains selected?
- FAQ 556 Is it possible to transfer an "option" item from dropdownlist A to dropdownlist B?
- FAQ 570 How can I dynamically add a new option to a select list?
- FAQ 667 Is it possible to add options to an existing select list?
- FAQ 739 How can I remove all the entries from a select form field?
- FAQ 840 How can the entries in a drop down form field be modified?
- FAQ 897 How can I synchronize select form fields so that they all display the same entries when one is changed, but where the synchronized select form fields are not actually selected?
- FAQ 910 How can I pass selections back and forth between two multiple select options?
- FAQ 913 How can I pass the value of a selected option of a drop-down box from one frame to a text field in another frame without having to press any buttons?
- FAQ 916 How can I dynamically sort the options in a select form field?
- FAQ 1046 How can I link three drop down form fields together so that chaining options in one of the first two effects the contents of the second and/or third?
- FAQ 1167 Is it possible to have one drop down list determine what will be displayed in another drop down list?
- FAQ 1178 How can I change a selected item in one select box based on a choice from another select box?
Checking/Validating Fields
- FAQ 124 What's a good way to enter form data for a phone number?
- FAQ 157 Is there a way for me to validate a form BEFORE submit so it will never arrive at the page?
- FAQ 164 How do you make make form submission conditional on returning true from more than one function?
- FAQ 169 When using an image input type in a form how can I perform form validation on form submission?
- FAQ 292 How can I validate a form and if necessary prompt for the proper values, and then still validate the new input before submitting the form?
- FAQ 538 How can I validate a form field so that leading zeros are dropped, any decimal places are dropped, any non numeric characters produce a warning, and if the resultant number is greater than 999 also produces a warning?
- FAQ 551 When creating a form, how can I check to see if data entered in a text field contains all numerics?
- FAQ 816 How can I validate a form field so that it is a fixed size (say 6) and only contains alpha numeric characters?
- FAQ 909 Is it possible to access the default values of form elements and stop the submission of a form if none of its elements have been changed?
- FAQ 1024 How can I validate a textarea so that a maximum of 10 rows with a maximum or 60 characters per row is allowed to be submitted?
- FAQ 1047 How do you limit the length (in characters) of text entered in a textarea form field?
- FAQ 1145 Is there any way of validating a form on a page without using the name attribute in the form tag?
- FAQ 1175 How can I use an image as a "submit" button, yet still validate my form?
- FAQ 1213 How can I validate a generic form so that all form fields are completed before it can be submitted?
Calculations and other Operations on Field Values
- FAQ 48 How do I sum form field values together?
- FAQ 79 How can I store the form field values so I can use them again later?
- FAQ 131 How do I add form elements together, I have tried many different ways but I always either get NaN or a concenated string (ie 15 + 16 + 1 + 52 = 1615152 != 84)?
- FAQ 189 How do you sort a number of lines of information in a textarea?
- FAQ 420 How can I copy just just the letters and only one of each from one form field to another?
- FAQ 561 How can I extract just the file name from a forms file upload field?
- FAQ 567 Is there a way to accumulate a value in a textbox based on how many radio buttons are turned on?
- FAQ 690 How do I capture a character that is typed into a textarea and change it to another character?
- FAQ 713 How do I make two dropdown menus, where the result of the selection of both dropdown menus will be shown in a text field?
- FAQ 761 How can I compare two selected items from two different select form fields?
- FAQ 777 How can I constantly check to see if and when the user has entered a specific word in a text box?
- FAQ 822 How can you remove space from a text field?
- FAQ 856 How can I add up the values in several text fields and place the result in another text field?
- FAQ 891 How can I change all occurences of one character to another character within all the text and textareas in a form?
- FAQ 920 How can I populate a form field if it is empty when the form is submitted?
- FAQ 1003 How can I multiply two form field values and show the result in a third?
- FAQ 1054 How can I sum the prices and quantities of many different form fields to produce a total price?
Submitting Forms
Pressing Enter Key for Form Submission
- FAQ 27 How can I submit a form which has more than one text field by just pressing enter?
- FAQ 127 How do I prevent Internet Explorer 3 from submitting a form when the user presses enter in a field?
- FAQ 235 How can I submit a form which has more than one text field by just pressing enter, but how do you make everything work if the user isn't running javascript?
- FAQ 291 In a form one with only one text field how can you ensure that the form is only submitted if the submit button has been pressed?
- FAQ 682 Is it possible to cause a multi-field form to be submitted when the user hits the enter key no matter which field on the form the cursor is in?
- FAQ 1179 Is it possible to stop Microsoft Internet Explorer 4 submitting a form when enter is pressed?
- FAQ 1785 How do I prevent a form from being submitted when I press the ENTER key?
Changing the Action Property and using several Submit Buttons
- FAQ 68 How do I change the forms action property?
- FAQ 128 Is it possible to have a form perform a different action depending on what is selected in a drop down list?
- FAQ 196 How can I have two submit buttons with different actions in one form?
- FAQ 265 If I have two identically named submit buttons, but with different values, how can I tell which one was pressed?
- FAQ 372 How can I make one submit-button post two different form to two different urls?
- FAQ 374 Is it possible to nest a button inside a form and have this button execute a different cgi, passing the appropriate name/value pairs?
- FAQ 378 How can I have two submit buttons with different actions in one form?
- FAQ 431 How can I post form results to multiple windows depending on the submit button the user clicks on?
- FAQ 434 How do I tell which button submitted a form?
- FAQ 579 How do I change the action property of a form based on which radio button is checked?
- FAQ 619 If a form has two submit buttons with the same name and different values, how can an onSubmit handler tell which button submitted the form?
- FAQ 880 How could I make a form with multiple actions?
- FAQ 1101 Is there a way of redirecting the action of a form using JavaScript in Microsoft Internet Explorer 3.x?
Misc. questions on Submitting Forms
- FAQ 45 How do I stop a form from being submitted?
- FAQ 71 Why won't the form submit() method work?
- FAQ 176 How can I submit a form using a normal image link?
- FAQ 187 How do I automatically submit a form after a timer function expires?
- FAQ 460 Can I detect when a form has been successfuly submitted and processed?
- FAQ 483 Is there a way of the form page returning to a thank you page after it has submitted the results to a cgi script?
- FAQ 593 How can I submit a form from a text link?
- FAQ 597 How can I direct the browser to a custom thank you page after the form is submitted?
- FAQ 647 When submitting a form, how do I load a thank you page when the user presses the submit button?
- FAQ 689 Is there a way to have a link submit a form, and then goto the new url?
- FAQ 759 When a form is submitted how can I show a thank you page?
- FAQ 811 How can I "POST" the results of a form and then have one specific response passed ahead to the next page?
- FAQ 932 Why can't I submit my form, it fails when using form.submit()?
- FAQ 956 How can I submit a form 10 seconds after the page has loaded?
- FAQ 1062 How can I create my own confirmation window to confirm a form submission?
- FAQ 1775 On a form with multiple Submit buttons and input fields, how to you choose which one is pressed when the Enter key is hit?
- FAQ 1779 Can I pass JavaScript variables to a CGI Perl program?
- FAQ 1789 Is there a way I can de-activate a submit button after it's been hit by the user, so that in the same session, the user can't use the button again?
- FAQ 1790 Why does the server not receive all input from select-option inputs?
- FAQ 1796 How do I stop a form from being submitted more than once
- FAQ 1797 How do I add another statement to an onSubmit validation when it already has one?
- FAQ 1803 Why won't the form submit() method work?
Using Forms for "Navigation"
- FAQ 168 How can a form button take you to another page?
- FAQ 576 How can I make a form which has three sections of radio buttons that will take the user to a specific page based upon their selections?
- FAQ 621 How can I have a dropdown form redirect to other pages, without a submit button?
- FAQ 701 How do I target differrent frames based on a URL value selected from a drop down list?
- FAQ 748 Is it possible to create a select form field menu which redirects to other pages without any "go" button?
- FAQ 995 How can I allow the user to select one from a number of radio button options, then click on a button which will take them to a web page as indicated by their selection?
Resetting Forms
- FAQ 266 How can I clear the form field values after the user has submitted the form for client side processing?
- FAQ 290 Can you use javascript to reset your form elements when a user clicks on their Browser Back Button?
- FAQ 359 Why can't I set the form values to some setting other than their default setting when using a forms onReset event handler?
- FAQ 838 How can I reset the value of form fields if the page is revisted?
- FAQ 940 How can I write my own reset function to reset form fields to their default values?
- FAQ 1019 How do I use my own graphic button to reset all the text fields in a form?
- FAQ 1176 Can I use an image object to clear my form instead of using the normal reset button?
Passing Data and other interaction between Fields/Forms/Frames/Windows/Pages
Interaction between Elements of a Form (inside one Form)
- FAQ 9 How do I make a button that when clicked displays a message in a field?
- FAQ 91 It is possible to activate a text input type box when one of two radio button is checked?
- FAQ 111 How when I click on the textBox do I set the focus to the checkBox?
- FAQ 218 How can I copy multiple options from one options list to another?
- FAQ 237 How can I change the contents of a drop down select list?
- FAQ 420 How can I copy just just the letters and only one of each from one form field to another?
- FAQ 476 How can I get a text entered in one text field copied in realtime to another text field?
- FAQ 659 How can I put the value of a selected select option into a textarea and retain the line breaks specified with \r\n?
- FAQ 713 How do I make two dropdown menus, where the result of the selection of both dropdown menus will be shown in a text field?
- FAQ 741 How can I select an option in a select form field when a radio button is selected?
- FAQ 743 How can I set the selected option of a select form field?
- FAQ 898 How can I update three text boxes with different information when an option from a pull down menu is selected?
- FAQ 933 How can I set the value of a form field when a check box is selected?
- FAQ 1006 How can I check a radio option based on the selection of a select form field?
- FAQ 1118 How can I check several checkboxes on a page when I select one checkbox that says "Select all"?
- FAQ 1795 How can I allow the user to combine one option from radio buttons and one option from list and then press submit button to open respective selected webpage??
Interaction between Forms on one Page
- FAQ 23 How do you pass an option from a drop down list from one form to a field on another form?
- FAQ 190 How do you combine two forms before submitting them as one form?
- FAQ 248 How can I maintain two drop down menus so that a change to one is reflected on the other?
- FAQ 462 Can I copy the input to one form to several others?
- FAQ 692 How can I pass the data entered in one form to another form in the same page?
- FAQ 788 How can I write a generic function that will accept parameters from a form button and update one of many different textarea with the contents of one of many different select form fields in one of many different forms?
- FAQ 798 How can I retrieve the value from one of several identically named checkboxes?
Interaction between Forms in different Frames or Windows
- FAQ 15 How do I pass a month from a drop down list to a field on another page?
- FAQ 33 How do I get a value from a dropdown menu, and use it to change the location of another frame?
- FAQ 78 How can I pass the entered values on a form in a popup window to a form on the original window?
- FAQ 80 How can I pass checkbox or radio value to another page?
- FAQ 156 How can I submit a text field so that after pressing "return" or clicking button it would be possible to jump to another URL page, containing the description of that word entered in the text field?
- FAQ 165 How do I access variable values and form field values across windows?
- FAQ 175 How can I write the contents of a textarea to another frame whilst retaining the line breaks?
- FAQ 216 In a popup window how can I submit a form, close the popup window and target the results of the form into the main window?
- FAQ 312 What is the simplest script for selecting an option from a drop down list and loading the page into another frame without a button?
- FAQ 391 How do I use an image button to submit a form in a different frame?
- FAQ 408 How can I change a value on a form on the original window from a button in a popup window, submit this form, and close the popup window in one step?
- FAQ 431 How can I post form results to multiple windows depending on the submit button the user clicks on?
- FAQ 480 How do I pass the value of a text field when the submit button is pressed onto the next page?
- FAQ 523 How can different selections in an options field open in different frames and windows?
- FAQ 913 How can I pass the value of a selected option of a drop-down box from one frame to a text field in another frame without having to press any buttons?
- FAQ 1120 How I get get the value of a selected radio button from another frame?
- FAQ 1307 How do I access variable values and form field values across windows where the popup window has frames?
Miscellaneous
- FAQ 61 Which events can be captured over the form type 'image'?
- FAQ 650 How can I load someone elses page and then submit a form that tells me how long it took to load?
- FAQ 685 How can I prompt the user when they leave my page if they've amended a textarea without submitting the form?
- FAQ 765 How can I get an option from a select box to show futher options relating to the choice made?
- FAQ 780 Can you simulate a click on an <input type="file"> button?
- FAQ 806 How do I switch between different forms depending on the value of a drop down selection box?
- FAQ 965 Is there anyway to prompt a user with a message if they tab to a particular field, but do not make any changes?
- FAQ 966 How can I dynamically alter the maxlength property of a text form field?
- FAQ 975 How can I combine the value of two form fields, and then only pass the combined value to the server?
- FAQ 1105 How do I count the number of characters entered within a textarea?
- FAQ 1129 How can I use form fields to control the properties of a new popup window?
- FAQ 1158 Can I detect the name of the form that contains a button that has been clicked?
- FAQ 1192 How can I select/highlight the text in a textfield using JavaScript?
- FAQ 1197 Using drop down select option menus, can I add include additional data with each option, but not as part of either its value or text properties?
- FAQ 1777 Is there a way to have a window self focus but still allow the user to enter data into a form?
- FAQ 607 How can you reset one field in a multi-field form without reseting the remaining fields?
- FAQ 1236 How can I change the selected option when I only know the value of the option to be selected?
- FAQ 1240 Is it possible to set a default value to the FileUpload input type?
- FAQ 1247 How can I prevent the user from checking more than x checkboxes
- FAQ 1265 How can I pass selections back and forth between two multiple select options, but have ALL the options (selected or otherwise) in the second select list passed back to the server?
- FAQ 1279 How to restrain a form from being submitted with the Enter key?
- FAQ 1288 When clicking on another window or frame, a form fields onChange event handler is not triggered, is there a way to detect changes?
- FAQ 1290 How can I hide a list box if one radio button is selected and show it if the other gets selected?
- FAQ 1302 Is it possible to have one "submit" button activate two "onSubmits" in order for a form to be validated?
- FAQ 1311 How do I get Netscape to "alert" the selected item in a listbox when the user double clicks the item?
- FAQ 1319 How do I have a dropdown menu selection automatically load a page without hitting a submit button?
- FAQ 1320 How can I validate a text input field so that only letters are taken and no numbers?
- FAQ 1322 How can I ensure that the change event it tripped for an amended form field, even if the user changes the focus to another frame?
- FAQ 1328 How can I capture the server response to a FORM submission so I can edit it, and then display it in a different frame?
- FAQ 1333 Is there any way to emulate a http "POST" request, but with multiple form buttons peforming different requests?
- FAQ 1334 How can I extract all the selected options from a multiple selection list?
- FAQ 1335 How can I pass a set of questions (one at a time) to a document.form.field.value with every click on a form button?
- FAQ 1342 Is there a way to programmatically click a submit button and ensure that the onClick event is fired?
- FAQ 1346 Is it possible for a form to span multiple layers in Netscape?
- FAQ 1358 How can I alter the wrapping of a text area from hard to virtual using radio buttons?
- FAQ 1366 How can I determine the subscript in the forms array when I only have a reference to the form and not the name of the form?
- FAQ 1371 how can I add a new option to a form select field in the current windows opener?
- FAQ 1394 How can I prevent the user from typing anything else than the characters 0123456789 and '.' and return in a form field?
- FAQ 1396 How can I pass the values of a selected options to another select form field and then submit them all of form submission?
- FAQ 1398 How do I keep a pop-up window forced always active and in front, yet allow users to enter values in form fields?
- FAQ 1415 How can I show the value of a checked checkbox in a text field?
- FAQ 1417 How can I verify that all the fields in a form are filled out?
- FAQ 1433 How can I pass a JavaScript array to the next page when a form is submitted?
- FAQ 1447 How could I change whether a check box or radio button is checked depending on what the user select from a drop down list?
- FAQ 1448 How do I unselect the highlighted item of a drop down list?
- FAQ 1449 Is it possible to validate a form field as the use move tos the next one?
- FAQ 1452 Using a drop down menu, how can I get to another page by just clicking on the page title within the menu, rather than use the 'Go' button?
- FAQ 1453 I want the user to be able to enter "yes" or "Yes" or YES" - what is the easiest way to accomplish this?
- FAQ 1456 How come in long running loops, the form fields do not get set before the loop begins?
- FAQ 1466 Why when using a form input type of "text" is the onClick event handler ignored in Netscape?
- FAQ 1468 How do I get the value of a selection in a drop down list in one frame to fill in a text box in another frame?
- FAQ 1472 When submitting a form with multiple fields to a validation function, and if there's an invalid entry in one of the fields, how do you return focus to that field and reset only the value of that field, and not the rest of the form?
- FAQ 1485 Can you simulate a click on an <input type="file"> button?
- FAQ 1490 How do I only enable a submit image button when one or more checkboxes within a form have changed?
- FAQ 1492 How can you disable Internet Explorer 5's Internet Options/Content/Autocomplete/Clear Forms or Clear Passwords tab using JavaScript?
- FAQ 1495 How do I get all buttons to be same size?
- FAQ 1496 How do I pause a JavaScript animation when clicking on a button?
- FAQ 1500 How can I pass the values of selected options of a multiple select list to a textarea?
- FAQ 1504 How can I dynamically add/delete options from a select object using JavaScript?
- FAQ 1506 How do I have a dropdown menu selection automatically load a page into a new frame without hitting a submit button?
- FAQ 1509 How can I disable and enable a form button?
- FAQ 1511 How can I change the name of an input form field prior to submitting the form to a search engine?
- FAQ 1517 Is there a way to make a select list visible or hidden or at least disbaled depending on what radio button is checked?
- FAQ 1527 How do you submit a form by hitting return in a textarea?
- FAQ 1530 How can a text box show the selected item from a select control, and then the select control be reset to always show " Select an item"?
- FAQ 1538 Can I set up a textbox where the user can enter and edit the text (Bold, Underline, Font, etc.) without having to enter in HTML code?
- FAQ 1539 How can I have a realtime character counter for a textarea?
- FAQ 1540 How can I have a push button that remains pushed in if you push it and released when you push it again (in C++ it call 'radio button style of push button')?
- FAQ 1548 How can I target another window when using radio buttons?
- FAQ 1550 How to determine whether the user has already selected an option from a multi select list?
- FAQ 1552 How do I disable a form field?
- FAQ 1553 How can I pass a variable to a function and then sort through a select list to find and remove the option when it is found and also add the option if it is not found?
- FAQ 1558 How I can change the action of a form depending on the completed text box?
- FAQ 1560 In a form with many text fields, how can you ensure that the form is only submitted if the submit button has been pressed?
- FAQ 1573 Is there a way to control the tab-sequence in a form in both Internet Explorer and Netscape Navigator using an array?
- FAQ 1574 How can I use an array to read in the input for multiple choice radio button questions, and then create a document to display those values by pushing a button?
- FAQ 1588 How can I force the usee to enter data in a text filed if they tab out of an empty text field?
- FAQ 1591 How can I find out what kind of object a particular form field is?
- FAQ 1598 How can I pass text to a function and have it change the selection of a select box to the option which has that text as its value?
- FAQ 1611 How do I position the cursor on the first field of the first form when a page loads?
- FAQ 1612 How do I position the cursor on the first field of the first form in the first frame when the frameset loads?
- FAQ 1621 How do I get a word count of the text in a textarea?
- FAQ 1623 How do I validate that the user has selected one of three radio buttons?
- FAQ 1627 How can I ensure that all the buttons on are form are all clicked before allow the submit button to submit the form?
- FAQ 1629 How can I prevent more than four checkboxes being clicked?
- FAQ 1636 How can I stop a user from hitting the Submit button twice?
- FAQ 1638 How can I disable the Internet Explorer auto complete form field feature?
- FAQ 1643 How can I extract all the selected options from a multiple selection list?
- FAQ 1644 How do you have a user enter a password, then re-enter the password to be verified?
- FAQ 1646 How can I ensure that four and only four checkboxes being clicked in a form?
- FAQ 1648 Is there a way to invoke a server side process without affecting the current page being displayed when the user interacts with a form?
- FAQ 1662 Is there a way to restrict number of characters within a textarea?
- FAQ 1666 How can I ensure that a user has checked button, and has selected an item from a select list?
- FAQ 1670 Can you change the values of form fields when a checkbox is clicked?
- FAQ 1672 When a page reloads (due to the user pressing back) how do I clear a form of all the user entered data?
- FAQ 1673 When capturing a userid and password in a form can I subsequently use them when requesting a server page that requires HTTP authentication?
- FAQ 1694 How can I change a selected item in one select box based on a choice from another select box without using frames?
- FAQ 1696 How can I update the action attribute of a form to include details from one of the form fields?
- FAQ 1698 How can I extract just the extension file name from a forms file upload field?
- FAQ 1701 How can I get the value of a text input field without using the name of the field?
- FAQ 1708 How can I pass the value of a hidden field into a confirm dialog box when the submit button is pressed, so I can ask the user if they really want to edit/remove the visible version of the hidden value?
- FAQ 1710 How do I ensure that a form field contains a .gov domain (whether that be .gov, .gov.uk etc)?
- FAQ 1713 How can I send the submission of an from to an email address or a URL depending of the status of a checkbox?
- FAQ 1717 How do I check that text entered in a text form field is an integer?
- FAQ 1718 How can I reject a form submission if one of any number of validate functions returns false?
- FAQ 1719 How can I populate a list of text form fields from the selected options in a multiple select list?
- FAQ 1720 How can I copy the contents pf a text input form field when the user changes its value to a hidden form field in a different form on the same page?
- FAQ 1723 How can I redirect to another page depending on how many checkboxes have been checked?
- FAQ 1728 How can I show the dates for the last two weeks in a select form field?
- FAQ 1729 How can I uncheck all radio boxes within a group of radio boxes?
- FAQ 1730 How can I remove options from a select list based either on the text property value or the value property value?
- FAQ 1732 How can I display an absolutely positioned layer of content over form fields so that the form fields do not show through the layer?
- FAQ 1733 How do you dynamically write a form field to a layer so Netscape displays it?
- FAQ 1740 How can I filter user input to leave just the numerical digits?
- FAQ 1742 Can you simulate a click on an <input type="file"> button?
©2018 Martin Webb