Welcome To Snipplr


Everyone's Recent Snippets Tagged form



1 2 3 4 5 6 ... 9
0 1435 posted 15 years ago by touffies
0 1815 posted 15 years ago by rliverman
This is some very basic jQuery to post from a comment form on a website. I would probably change the .click to .bind("click",) and for different sites I add a success message. This code works with a basic form with text inputs named #name and #email...
3 1789 posted 15 years ago by creativeboulder
This was a fix for the form that allowed me to automatically replace the text when I focused on area. Find the file text.php inside modules. Replace line 89 with this code.
0 1780 posted 15 years ago by gera3d
0 1325 posted 15 years ago by falconzy
Giorgio fecit. Serve per controllare, a partire da un checkbox, che non ne siano selezionati altri nella stessa riga.
0 1449 posted 15 years ago by tuffo19
Here is a little bit of code I use from time to time to make a generic some what safe date selector for forms. I wanted something easy, small, and not relying on images, jquery, libraries, etc... Most importantly I wanted the date that was selected t...
0 1434 posted 15 years ago by brownrl
Custom dropdown field, replace defaut dropdown style with custom design. This function does not replace the select field.
1 2669 posted 15 years ago by touffies
Custom Radio box, replace with images
2 1676 posted 15 years ago by touffies
Custom checkbox field, replace by images
2 1828 posted 15 years ago by touffies
Code matches querysting data to form feilds on the page based on the feild name. I've added the example querystring to the body of the page. Found at: http://codingforums.com/showthread.php?t=198419 Code by: Old Pedant
0 1547 posted 15 years ago by Carolyne
0 1576 posted 15 years ago by sorinspanu
0 1424 posted 15 years ago by metoikos
2 1661 posted 15 years ago by spraitas
formulário para enviar para os emails de acordo com o departamento escolhido no Select
0 1357 posted 15 years ago by rbulgueroni
usage; $.toJSON($(\'form\').serializeObject());
3 1922 posted 15 years ago by virgil
We set up a voting page, where supporters would choose one of three candidates (only two are shown in the snippet). By clicking the checkbox, the supporter would add themselves to a Salsa group. This way only one vote for a candidate by a supporter w...
0 1487 posted 15 years ago by powerthru
this is a way to deal with the fact that we can\'t reliably make checkboxes look larger on forms. So instead, we surround the form with a colored div, and set it up so that when the user clicks on the label next to the checkbox it checks the box.
0 1656 posted 15 years ago by powerthru
1 1595 posted 15 years ago by TrendyPet
In regards to progressive enhancement, see also the [jQuery version](http://snipplr.com/view/48275/default-value-for-input-fields-jquery-version/).
6 2218 posted 15 years ago by riddla
This just replaces the default value of a form element. Then it bring it back if you click away.
1 1568 posted 15 years ago by gera3d
2 1674 posted 15 years ago by rwczippy
I\'m constantly testing forms over and over for one reason or another, and am fed up with making a typo and autocomplete not populating all the data, so I made this little snippet. It searches for form elements on the page (input, textarea and select...
1 1860 posted 15 years ago by dom111
1 3857 posted 15 years ago by alozuldo
0 3623 posted 15 years ago by alx_g
replace the default 'submit' form button with a custom image
1 1444 posted 15 years ago by mumra
0 1429 posted 15 years ago by Farhan
1 2 3 4 5 6 ... 9