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 735 posted 12 years ago by charliefmoran
Simular submit al hacer enter y tener un boton type="button"
0 772 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 1126 posted 12 years ago by FatFolderDesigner
0 696 posted 13 years ago by etechblog
Comment out the SharePoint:SaveButton tag and replace with input tag
0 1380 posted 13 years ago by rumremix
Dynamically add <label> HTML tag to input description, matching the input by adding an ID value to the input.
0 816 posted 13 years ago by jbernus
0 663 posted 13 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 812 posted 13 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 886 posted 13 years ago by thursday0384
WP Functions
0 859 posted 13 years ago by silentpro
0 906 posted 13 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 3325 posted 13 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 1057 posted 13 years ago by cdurocher
This should enable you to clear elements such as search boxes effectively whilst maintaining usability. Enjoy!
0 770 posted 13 years ago by Fitzgenius
Within your view, you place something like: <?=>session->flashdata('feedback') ?>
0 624 posted 13 years ago by screon
Reset input type text onfocus if value differs from default.
0 691 posted 13 years ago by smonteru
0 845 posted 13 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 1177 posted 13 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 1279 posted 13 years ago by racl101