google+javascriptbanktwitter@js_bankfacebook@jsbankrss@jsbank
Guest, register






PickList II This JavaScript code code moves form elements from one select box to the other. It allows for multiple items to be moved at once, and all items are sorted alphabetically as they are moved. The items are sorted by their description, not their value, which is helpful when pulling items from a database which have random IDs associated with them.

Note: The function move merely moves the items back and forth. This function alone will not select any of the items to be sent along with the post. In other words nothing will be sent in the form when you submit it unless some items are selected (highlighted) or additional JavaScript code it used. In this page I have added the function selectAll which loops through the righthand box and selects all the items before the form is submitted. This is much more intuitive for the user. The function selectAll is called in the onClick event of the submit button.


Category: Form, Dropdown

Passing and Sorting Values Between Lists This is an addition to the script submitted by Maksim Kramnik. I have added sort functionality to his script.


Category: Form, Dropdown

Multiple Dynamic Combo Boxes This lightweight yet powerful script lets you create multiple (unlimited) combo boxes, with each one linked and dependant on the one proceeding it. Very nice.


Category: Form, Dropdown

Dropdown Box Population Multiple series of dropdown boxes (up to 3) are automatically populated based on previous selection. Revised to work with IE, Netscape, Firefox, and Opera.


Category: Form, Dropdown

Country Chooser Here's a useful script for a form that needs to know the visitor's country. It saves giving a huge list of countries in one box. For the USA, it also asks the state.


Category: Form, Dropdown

User Management Use this JavaScript to add and subtract items in different fields. Changes made can be displayed for each field.


Category: Form, Dropdown

Selection Order Adjust the order of the items in a selection box and submit them in that order. Neat!


Category: Form, Dropdown

Selection Box Copy items from one selection box to a second selection box. Selected item values are stored as a string for further manipulation, such as submitted through a form, an alert box, etc. Useful!


Category: Form, Dropdown

List Organizer Easily organize a list of values to place them in any order. Allows you to add and delete from the list!


Category: Form, Dropdown

ShowDivId A function for dynamic form compositions from a Select option.


Category: Form, Dropdown

JavaScript by day


Google Safe Browsing McAfee SiteAdvisor Norton SafeWeb Dr.Web