Welcome To Snipplr


Everyone's Recent Snippets Tagged form



cross-browser way to select all text in a form element, via Jason on Stack Overflow
0 584 posted 11 years ago by charliefmoran
Simular submit al hacer enter y tener un boton type="button"
0 589 posted 12 years ago by rickyslow
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...
0 916 posted 12 years ago by FatFolderDesigner
0 530 posted 12 years ago by etechblog
Comment out the SharePoint:SaveButton tag and replace with input tag
0 1100 posted 12 years ago by rumremix
Dynamically add <label> HTML tag to input description, matching the input by adding an ID value to the input.
0 638 posted 12 years ago by jbernus
0 509 posted 12 years ago by vigoncas
Use this to convert JavaScript numbers to official scientific standard form (e.g. 1.54 &times; 10^3) Uses HTML &lt;sup&gt; tags and &times; symbol Example: var number = 4.223e20; var stnd = standardForm(number); // stnd = 4.223 x 10^20
0 622 posted 12 years ago by Jellybean732
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...
1 709 posted 12 years ago by thursday0384
WP Functions
0 664 posted 12 years ago by silentpro
0 727 posted 12 years ago by lucaborace
Don't go through what I did. Just copy and paste this into the Contact Form 7 plugin for an easy date of birth picker.
0 3049 posted 12 years ago by ethicka
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.
2 858 posted 12 years ago by cdurocher
This should enable you to clear elements such as search boxes effectively whilst maintaining usability. Enjoy!
0 597 posted 12 years ago by Fitzgenius
Within your view, you place something like: <?=>session->flashdata('feedback') ?>
0 469 posted 12 years ago by screon
Reset input type text onfocus if value differs from default.
0 530 posted 12 years ago by smonteru
0 666 posted 12 years ago by cfergus
<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;</...
0 990 posted 12 years ago by freezy
Don't forget to include jQuery validation plugin before this snippet. You can find it here: http://bassistance.de/jquery-plugins/jquery-plugin-validation/
0 1027 posted 13 years ago by racl101