Welcome To Snipplr


Everyone's Recent jQuery Snippets Tagged form



« Prev 1 2
  1. FAV

    Get all values from form and send it to a page via Ajax

    Here’s a super handy snippet that I use very often. It works very simply: once the user clicks on #submit, the data from #form is serialized and sent to a remote page using the POST method.
    jQuery 9 views posted 2 years ago by catswhocode
  2. FAV

    Numbers only in an input field

    Méthode n'autorisant que les nombres (positifs/négatifs/décimaux avec virgules ou points) dans un champ
    jQuery 7 views posted 5 years ago by Igeco
  3. FAV

    Only Numbers In An Input

    N'autorise que les chiffres (avec , ou . ou négatifs) dans un input
    jQuery 9 views posted 5 years ago by sebabarre
  4. FAV

    Post form by AJAX and jQuery

    This code shows how we post HTML form by AJAX and jQuery.
    jQuery 18 views posted 6 years ago by khaled__mahmoud
  5. FAV

    Form input field value replace onchange with jQuery

    If someone put text into an input field (or automatic e.g. with a 2d barcode scanner) and you want to replace a part of the input (pattern) then will help this small jquery code snippet.
    jQuery 13 views posted 7 years ago by bassdas
  6. FAV

    Add \'label for\' matching input dynamically

    Dynamically add <label> HTML tag to input description, matching the input by adding an ID value to the input.
    jQuery 5 views posted 8 years ago by jbernus
  7. FAV

    Reset/clear a form

    jQuery 3 views posted 8 years ago by vigoncas
  8. FAV

    Check radio input selected and values

    jQuery saved by 1 person 4 views posted 8 years ago by reynish
  9. FAV

    jQuery input value text toggle

    This is a jQuery custom function used for clearing the default input values of input fields without having to add a class or inline javascript like onclick or onblur. Just write your input and give it a value like you normally would and then add this...
    jQuery saved by 3 people 8 views posted 8 years ago by thursday0384
  10. FAV

    Jquery Prevent autofill form fields by browsers

    jQuery 4 views posted 8 years ago by nareshrevoori
  11. FAV

    jQuery: Input text default value, clear value on click, if typed value erased, get default value back

    Specifiy a default value to input text field. OnFocus, the default value clear and let you type a new value. If typed value is erased then the default value is set back.
    jQuery saved by 4 people 9 views posted 8 years ago by cdurocher
  12. FAV

    jQuery Text Clear and Restore

    This should enable you to clear elements such as search boxes effectively whilst maintaining usability. Enjoy!
    jQuery 4 views posted 8 years ago by Fitzgenius
  13. FAV

    jQuery Prepopulated form fields

    jQuery 3 views posted 8 years ago by thegrevster
  14. FAV

    Clear default textfield value on click

    No need to create a seperate function for this one. Just one line to clear the default value on click and leave the value when it has been altered.
    jQuery saved by 2 people 4 views posted 8 years ago by dyteq
  15. FAV

    jQuery enter key press form submission

    jQuery 1 views posted 8 years ago by tutrinh211
  16. FAV

    Remove/restore a form field's default value on focus/blur

    If your HTML form fields have a 'watermark' default value, it will be removed when the field is focussed and replaced if focus is lost (and the user has left the field blank). To use give your form field a class of 'default-value'
    jQuery saved by 3 people 9 views posted 8 years ago by f6design
  17. FAV

    Default value for input fields (jQuery version)

    See also the [plain JavaScript version](http://snipplr.com/view/41717/default-value-for-input-fields/).
    jQuery saved by 4 people 5 views posted 9 years ago by riddla
  18. FAV

    Close a fancybox when you submit a form

    jQuery 6 views posted 9 years ago by dropthenerd
  19. FAV

    jQuery Google Analytics Form Field tracking event

    jQuery 5 views posted 9 years ago by nicomollet
  20. FAV

    Clear Form Data

    jQuery 2 views posted 9 years ago by touffies
  21. FAV

    Simply clear the default input value on first :focus

    jQuery saved by 1 person 2 views posted 9 years ago by yhs
  22. FAV

    jQuery and Form2Mail

    This is some very basic jQuery to post from a comment form on a website. I would probably change the .click to .bind("click",) and for different sites I add a success message. This code works with a basic form with text inputs named #name and #email...
    jQuery saved by 12 people 7 views posted 9 years ago by creativeboulder
  23. FAV

    Custom Dropdown

    Custom dropdown field, replace defaut dropdown style with custom design. This function does not replace the select field.
    jQuery saved by 3 people 5 views posted 9 years ago by touffies
  24. FAV

    Custom Radio box

    Custom Radio box, replace with images
    jQuery saved by 4 people 3 views posted 9 years ago by touffies
  25. FAV

    Custom Checkbox

    Custom checkbox field, replace by images
    jQuery saved by 4 people 0 views posted 9 years ago by touffies
  26. FAV

    Simple click clear restore form label

    jQuery saved by 2 people 4 views posted 9 years ago by davebowker
  27. FAV

    Clear form data

    jQuery saved by 4 people 3 views posted 9 years ago by spraitas
  28. FAV

    Serialize Form to JSON

    usage; $.toJSON($(\'form\').serializeObject());
    jQuery saved by 12 people 7 views posted 9 years ago by virgil
  29. FAV

    Using focus and blur on input with jQuery

    jQuery saved by 6 people 6 views posted 9 years ago by tcelestino
  30. FAV

    Prevent Enter from Submitting Form (jQuery)

    jQuery 4 views posted 9 years ago by smithbjames
« Prev 1 2