Posts Tagged ‘form’
jQuery form validation plugin November 15th, 2010
So in my last post I promised something scripty and here it is – my first attempt at a jQuery plugin. Some of you might remember a previous post of mine concerning JavaScript form validation – I used this as the base to build my jQuery plugin. It does much of the same sort of validation but it’s much easier to implement, can be used on multiple forms, on the same page with different settings and has several different methods of alerting the user to validation fails. The two forms below show some of it’s features in action and you can download the files for a more in depth look.
Form 1
Form 2
The files include the plugin as well as a sample HTML form. Feel free to download and use - but if you do it would be nice if you left the credits in the JS file as they are.
This is currently version 1.0 and as I use this in my own work I'll probably be expanding the functionality and improving it over time so do watch for updates. Also if you have any functionality requests or suggestions for improvement, or if you make any improvements yourself, please let me know.
Javascript forms – textarea word count April 5th, 2010
Happy Easter loyal readers (or possibly reader). Here’s a nice simple piece of JavaScript that counts down the number of words remaining in a restricted text field as you type. When you hit your limit and the counter hits zero you will no longer be able to type any words untill you delete some. There is no restriction here on characters and words are defined by spaces only. The example below shows it in action.
Textfield is limited to 50 words.
words remaining: 50
File’s attached as usual here – so download them, use them and together we can make HTML forms fun! (as long as you don’t have JavaScript disabled…)