Welcome To Snipplr
Everyone's Recent Snippets Tagged form
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
cross-browser way to select all text in a form element, via Jason on Stack Overflow
0
735
posted 12 years ago by charliefmoran
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
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
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
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
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
jQuery
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.
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
<p>usage: <br>
<code><a href="" onclick="recordOutboundLink(link, category, action, opt_label, opt_value);return false;"> <br>
<form id="uniqueID" onsubmit="trackFormSubmit(form, category, action, opt_label, opt_value);return false;"></...
0
1177
posted 13 years ago by freezy
JavaScript
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/
0
1279
posted 13 years ago by racl101