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
1023
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
901
posted 16 years ago by superdeluxesam
this requires jquery.js, jquery.metadata.js, and jquery.validate,js
2
858
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
673
posted 16 years ago by sulfurito
Makes Drupal Advanced Search form non collapsible and expanded by default.
0
691
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
743
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
623
posted 16 years ago by jeppeb
Name the form what ever you like, but make sure that is reflected in the javascript.
0
4751
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
732
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
520
posted 16 years ago by betacontinua
A drop down list of facial hair options for an online form.
0
1163
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
2467
posted 16 years ago by jonhenshaw