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 439 posted 10 years ago by charliefmoran
Simular submit al hacer enter y tener un boton type="button"
0 441 posted 10 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 655 posted 10 years ago by FatFolderDesigner
0 385 posted 11 years ago by etechblog
Comment out the SharePoint:SaveButton tag and replace with input tag
0 796 posted 11 years ago by rumremix
Dynamically add <label> HTML tag to input description, matching the input by adding an ID value to the input.
0 462 posted 11 years ago by jbernus
0 382 posted 11 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 452 posted 11 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 527 posted 11 years ago by thursday0384
WP Functions
0 481 posted 11 years ago by silentpro
0 526 posted 11 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 2435 posted 11 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 614 posted 11 years ago by cdurocher
This should enable you to clear elements such as search boxes effectively whilst maintaining usability. Enjoy!
0 436 posted 11 years ago by Fitzgenius
Within your view, you place something like: <?=>session->flashdata('feedback') ?>
0 348 posted 11 years ago by screon
Reset input type text onfocus if value differs from default.
0 382 posted 11 years ago by smonteru
0 485 posted 11 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 780 posted 11 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 764 posted 11 years ago by racl101