Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged form



« Prev 1 2 3
  1. FAV

    Verify email address

    Allows for forname.o'[email protected]
    JavaScript 10 views posted 4 years ago by flatearthcomms
  2. FAV

    FILL DATE INPUT WITH FIRST AND LAST DAY OF CURRENT MONTH

    Permet de préremplir des champs avec le premier et le dernier jour du mois courant au format jj/mm/aaaa
    JavaScript 4 views posted 5 years ago by Igeco
  3. FAV

    Helpful Dynamics CRM 2011 form scripting tidbits

    A set of common From scripting tasks
    JavaScript saved by 1 person 4 views posted 7 years ago by chetkloss
  4. FAV

    Remove $ from HTML form on submit

    Removes $ from HTML form post, allows only number and decimal points. Has $ display in field but disappear when onfocus.
    JavaScript saved by 2 people 3 views posted 7 years ago by lromak
  5. FAV

    Clear form with JavaScript

    JavaScript is the only option, if you want to have the ability to clear all form fields. Yes, HTML form has Reset method, but if the form has initial values, then Reset will return the form to the initial state instead of clear input fields. This exa...
    JavaScript 0 views posted 7 years ago by laxman2021
  6. FAV

    Shift+Click to Select/Deselect Checkboxes.

    Allows you to click a given checkbox X, then shift click another checkbox Y. All checkboxes between X and Y will be checked or unchecked based on the state of checkbox Y. i.e. if you're unchecking Y all boxes between X and Y will also be unchecked.
    JavaScript saved by 2 people 11 views posted 7 years ago by ReedD19
  7. FAV

    jQuery Form Attribute Change

    Simply changes the name attribute on input elements when the page is loaded.
    JavaScript 3 views posted 7 years ago by stevielamb83
  8. FAV

    POST form with jQuery (Ajax)

    This send any value via POST to a PHP page. It is done with AJAX, so the POST return can be used on the same page as the submit
    JavaScript 22 views posted 7 years ago by rickygri
  9. FAV

    POST form with javascript (Non-Ajax)

    This javascript function takes the URL of the target page and an associative array of name/values paires and POSTs the data to the supplied URL by dynamically creating a form and then submitting it.
    JavaScript 10 views posted 7 years ago by rickygri
  10. FAV

    select text in form element

    cross-browser way to select all text in a form element, via Jason on Stack Overflow
    JavaScript 5 views posted 7 years ago by charliefmoran
  11. FAV

    Simular submit al hacer enter y tener un boton type="button"

    Simular submit al hacer enter y tener un boton type="button"
    JavaScript 4 views posted 7 years ago by rickyslow
  12. FAV

    get GET and POST variables in javascript

    Usually when working with form you use a server to handle it, and if your doing it entirely in javascript no reload is required, but what if you wanted to take the information and use it in a javascript on another page, completely client side. I had...
    JavaScript 10 views posted 8 years ago by FatFolderDesigner
  13. FAV

    function blur focus en jquery sur les valeurs des champs d un formulaire

    JavaScript 5 views posted 8 years ago by kspal
  14. FAV

    JavaScript to Standard Form converter (times 10^x)

    Use this to convert JavaScript numbers to official scientific standard form (e.g. 1.54 × 10^3) Uses HTML <sup> tags and × symbol Example: var number = 4.223e20; var stnd = standardForm(number); // stnd = 4.223 x 10^20
    JavaScript 0 views posted 8 years ago by Jellybean732
  15. FAV

    Populate text field in form with radio button value

    JavaScript 2 views posted 8 years ago by kbrown
  16. FAV

    Form input type text reset onfocus

    Reset input type text onfocus if value differs from default.
    JavaScript 1 views posted 8 years ago by smonteru
  17. FAV

    Submit form al cambiar un select

    JavaScript 0 views posted 8 years ago by developer
  18. FAV

    Auto hide input field on focus

    JavaScript 3 views posted 8 years ago by cfergus
  19. FAV

    If selected option value contains....

    JavaScript 2 views posted 8 years ago by reynish
  20. FAV

    Google Analytics tracking link click and form submit to multiple trackers

    <p>usage: <br> <code>&lt;a href="" onclick="recordOutboundLink(link, category, action, opt_label, opt_value);return false;"&gt; <br> &lt;form id="uniqueID" onsubmit="trackFormSubmit(form, category, action, opt_label, opt_value);return false;"&gt;</...
    JavaScript 3 views posted 8 years ago by freezy
  21. FAV

    Simple Math Captcha-like verification JavaScript script that uses jQuery (form) validation plugin

    Don't forget to include jQuery validation plugin before this snippet. You can find it here: http://bassistance.de/jquery-plugins/jquery-plugin-validation/
    JavaScript 6 views posted 8 years ago by racl101
  22. FAV

    Fill Any Empty HTML Field on Exit with a user supplied value

    Often you supply a default value in a text field which you want to automatically clear when the user enters the field. This will do that operation and fill the field with a default value.
    JavaScript 2 views posted 8 years ago by jimbo
  23. FAV

    Clear HTML Form Field on Entry

    Clear a field on entry if the default text matches a supplied value. Generic to any field.
    JavaScript 0 views posted 8 years ago by jimbo
  24. FAV

    Jquery seleziona checkboxes

    Giorgio fecit. Serve per controllare, a partire da un checkbox, che non ne siano selezionati altri nella stessa riga.
    JavaScript 2 views posted 9 years ago by tuffo19
  25. FAV

    Prepopulate form with values from querystring

    Code matches querysting data to form feilds on the page based on the feild name. I've added the example querystring to the body of the page. Found at: http://codingforums.com/showthread.php?t=198419 Code by: Old Pedant
    JavaScript 1 views posted 9 years ago by Carolyne
  26. FAV

    require one of three Salsa group checkboxes to be selected

    We set up a voting page, where supporters would choose one of three candidates (only two are shown in the snippet). By clicking the checkbox, the supporter would add themselves to a Salsa group. This way only one vote for a candidate by a supporter w...
    JavaScript 0 views posted 9 years ago by powerthru
  27. FAV

    Check form checkbox when the label is clicked

    this is a way to deal with the fact that we can\'t reliably make checkboxes look larger on forms. So instead, we surround the form with a colored div, and set it up so that when the user clicks on the label next to the checkbox it checks the box.
    JavaScript 0 views posted 9 years ago by powerthru
  28. FAV

    Default value for input fields

    In regards to progressive enhancement, see also the [jQuery version](http://snipplr.com/view/48275/default-value-for-input-fields-jquery-version/).
    JavaScript saved by 24 people 5 views posted 9 years ago by riddla
  29. FAV

    autoPopulate 0.1 - Automatically populate form fields using a bookmarklet

    I\'m constantly testing forms over and over for one reason or another, and am fed up with making a typo and autocomplete not populating all the data, so I made this little snippet. It searches for form elements on the page (input, textarea and select...
    JavaScript saved by 2 people 3 views posted 9 years ago by dom111
  30. FAV

    Empty Form Field Onclick

    JavaScript 3 views posted 9 years ago by Farhan
« Prev 1 2 3