A example is more worth than 100 words
how many lines of code you might need to achieve this?
Answer: Only four lines and that too without knowing any regular expressions….. Yes. Using a library called jquery and its validate plugin. Code is shown below.
- $.validator.setDefaults({
- submitHandler: function() { alert("submitted!"); }
- });
-
- $().ready(function() {
- // validate the comment form when it is submitted
- $("#commentForm").validate();
- });
Below are some good design examples of what you can achieve using jquery.
If you have came across any nice implementation of Jquery, let me know through comments. I will like to update my list.
- Example 1 :Slide tabbed box
- Example 2 : Expanding menu like Apple site
- Example 3 : Zoom image
- Example 4 : Sliding boxes and captions to image
- Example 5 : Sliding image behind menu
- Example 6 : Image tab
- Example 7 : Menu Fade
- Example 8 : Slider Menu
- Example 9 : Tabs
- Example 10 : Tabbed Menu
0 comments:
Post a Comment