CoderZone.org

 Category: JavaScript

Bookmark and Share

A JavaScript implementation of the famous sprintf() function - This is a lightweight yet powerful JavaScript im...
Accordian Menu - Slick accordion menu code integrates easily into any project.
Add a hidden field to a form dynamically - This function adds a hidden form field to a specified form on the fl...
Add and Remove classes in Javascript - Example of how to dynamically add and remove a class from an element usi...
Add more fields to a form dynamically - Shows how to add more fields to a form by clicking a link or button.
Add more form fields - Dynamically add form fields to your forms.
Add/Remove from Select list - Easily add or remove elements form lists.
AJAX Inline Editor #1 - Edit-in-place with this slick bit of code.
AJAX Inline Editor #2 - Inline editing example using AJAX.
Another Good Email Validator - Easily check to see if an email is "legal".
Anti_Bot Form Code - In this example, the action of the form is not set until the user clicks on submit. I beli...
Attach to all links - Takes all your page's links and replaces or adds popup code to it.
Auto-Link words - Automatically turns every instance of a word into a link. While functionality like this is...
Automatically find location of javascript file - What this does is find the location of a javascript file on th...
Calculate time difference between two dates - Calculates the time difference between two dates.
Capitalize first letter of words - Capitalize the first letter of every word entered into a form field.
Case Insensitive Compare - Very handy javascript snippet that compares two strings in a case-insentive fashion.
Change text box height - May not work on some (older) versions of Internet Explorer. Set a textarea height t...
Check if a date is in the past - This javascript snippet checks that a user-supplied date is not in the past. T...
Check or Uncheck all Checkboxes - Use this Javascript function to check or uncheck all the checkboxes in a form...
Check radio button selection - Make sure a radio button is selected.
Check whether a date belongs to a leap year - This snippet will check whether a given date belongs to a leap year.
Clear screen - Just in case someone does need code for it, here's an easy way to clear the screen. This wil...
Click to edit Table Cell - Click to edit a table cell inline.
Confirm Delete - Pop-up confirmation box code for moving, deleting, copying, etc.
Convert entities into normal characters - Converts entities (e.g., &, é) back into normal characters...
Copy IFRAME contents - NN6 has powerful DOM operations to copy elements and nodes, named "nodeObject.cloneNo...
Count checkboxes - Make sure users can only select X number of checkboxes.
Count Textbox Chars - Count the number of characters remaining in a textbox.
Countdown to Enable a Download Link - How to enable a link after a set period of time (in this case, 30 seconds...

© coderzone.org | users online: 18