Welcome To Snipplr
Everyone's Recent Snippets Tagged form
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Here’s a super handy snippet that I use very often. It works very simply: once the user clicks on #submit, the data from #form is serialized and sent to a remote page using the POST method.
0
2072
posted 7 years ago by catswhocode
Displaying Contact Form 7 fields on 2 columns using CSS.
0
1270
posted 8 years ago by deliciousthemes
Simple script to send SMS throught our HTTP API (Afilnet) with PHP. Steps:
1.- Register in Afilnet. http://www.afilnet.com/anunciante/registrar.php
2.- Login and get credits (10 free) to send SMS
3.- Use this script or html form example include in...
1
1108
posted 9 years ago by Afilnet
Translate non alphanumeric characters into an underscore. Doesn't create double underscores if there's two spaces in a row. Also turns name to lowercase. Use with trim to avoid spaces at front or end.
0
1608
posted 9 years ago by flatearthcomms
Jump start effort required to create a simple order form. Form collects product/service info, shipping details, payment details and customer billing/shipping details.
1
1278
posted 10 years ago by FlashBuddy
Permet de préremplir des champs avec le premier et le dernier jour du mois courant au format jj/mm/aaaa
0
1251
posted 10 years ago by Igeco
Méthode n'autorisant que les nombres (positifs/négatifs/décimaux avec virgules ou points) dans un champ
0
1089
posted 10 years ago by Igeco
N'autorise que les chiffres (avec , ou . ou négatifs) dans un input
0
1024
posted 10 years ago by sebabarre
How to submit a form asynchronously and get result in JSON
0
1000
posted 10 years ago by DennisvanderStelt
Tested in Firefox 4, Safari 4, Chrome 14, Opera 10, IE 8 (and newer)
0
1098
posted 11 years ago by jntu_gnec
This code shows how we post HTML form by AJAX and jQuery.
0
1205
posted 11 years ago by khaled__mahmoud
Draw a border around the form.
Add to the paint event handler.
0
1174
posted 11 years ago by thomas-h
In modern browsers select options can now be style using most css properties. Of course, IE is still behind but it does support some styling as well. There are a lot more options on the site.
0
959
posted 11 years ago by COBOLdinosaur
Removes $ from HTML form post, allows only number and decimal points. Has $ display in field but disappear when onfocus.
1
1002
posted 12 years ago by lromak
JavaScript is the only option, if you want to have the ability to clear all form fields. Yes, HTML form has Reset method, but if the form has initial values, then Reset will return the form to the initial state instead of clear input fields. This exa...
1
990
posted 12 years ago by laxman2021
Allows you to click a given checkbox X, then shift click another checkbox Y. All checkboxes between X and Y will be checked or unchecked based on the state of checkbox Y. i.e. if you're unchecking Y all boxes between X and Y will also be unchecked.
1
1358
posted 12 years ago by ReedD19
With jQuery and SPServices, we have very powerful tools for accessing and manipulating Sharepoint data and precisiely contolling the presentation, entirely from the client side. But such solutions generally need to be either hard-coded into pages or...
0
1527
posted 12 years ago by rumremix
If Chrome is bothering with unknown borders and things like that, just apply this.
0
835
posted 12 years ago by valenzine
this snippet is for this html structure
%form
%ol
%li
%label Label:
%input
0
937
posted 12 years ago by Merstzik
Simply changes the name attribute on input elements when the page is loaded.
0
850
posted 12 years ago by stevielamb83
If someone put text into an input field (or automatic e.g. with a 2d barcode scanner) and you want to replace a part of the input (pattern) then will help this small jquery code snippet.
0
1251
posted 12 years ago by bassdas
This send any value via POST to a PHP page. It is done with AJAX, so the POST return can be used on the same page as the submit
0
1195
posted 12 years ago by rickygri
This javascript function takes the URL of the target page and an associative array of name/values paires and POSTs the data to the supplied URL by dynamically creating a form and then submitting it.
0
2874
posted 12 years ago by rickygri