Welcome To Snipplr
Everyone's Recent Snippets Tagged form
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Use by inserting the following in the head.
<script>
$(document).ready(function() {
$("input").toggleVal();
});
</script>
0
1016
posted 16 years ago by davebowker
This snippet creates a basic input and label combo for an html form. Has tab stops at relevant places for adding for, id and name attritbutes
2
898
posted 16 years ago by superdeluxesam
this requires jquery.js, jquery.metadata.js, and jquery.validate,js
2
853
posted 16 years ago by bcalloway
Para validar si son dígitos, letras, números enteros o decimales (se puede seleccionar el separador de decimales). La función esDigito() y esLetra() está basada en otros códigos de Snipplr
1
668
posted 16 years ago by sulfurito
Makes Drupal Advanced Search form non collapsible and expanded by default.
0
686
posted 16 years ago by aleprieto
Requires Mootools 1.2<br/>
http://mootools.net/download
Based on the mootools javascript framework a re-usable class for easily implementing an array of on submit events.
* Confirmation - Provides an Ok, Cancel input box before proceeding furt...
1
738
posted 16 years ago by dom111
When there's a value in a textbox, like 'search', it disappears when you click on it, and reappears when you leave (blur) it. But only if you haven't filled in anything ofcourse.
Use it like this:
1
616
posted 16 years ago by jeppeb
Name the form what ever you like, but make sure that is reflected in the javascript.
0
4745
posted 16 years ago by jachin
Makes the form field background yellow and the border red when it is the active field. Works in most browsers except the usual lame ones (IE5.5 & 6).
1
728
posted 16 years ago by will
Para realizar validaciones en Javascript rápidamente. Requiere que en la etiqueta metamos un onSubmit="return checkform(this);" . Este trozo de código es para dos campos input con nombres campo1 y campo2.
0
518
posted 16 years ago by betacontinua
A drop down list of facial hair options for an online form.
0
1158
posted 16 years ago by jonhenshaw
This is a list of the fifty most commonly spoken languages in the United States of America. The list can be used in an online form.
0
2462
posted 16 years ago by jonhenshaw