Top Menu

Form Validation with js and cssTo make it all work, we first need to add the jQuery library script between the Head tags.*  when you blank field then focus  text box (etc) border red and open alert box* when you focus text  box etc then text box and etc background change.Code Here   <html xmlns="http://www.w3.org/1999/xhtml"> <head>  <title>Create User</title>  <meta http-equiv="Content-Type" content="text/html;…

Simple Tabs CSS & jQuery - Easy Tab Tutorial with CSS and jQueryI know there are quite a few tutorials out there that demonstrate how to create tabs with CSS & jQuery, but I decided to create my own as well. I’m not sure if the techniques are the same, but hopefully this tutorial will be easy to understand even…

Check file Size Validation on PhpCheck file Size Validation on Phpdefine("MAX_SIZE",20000);$target_path='fileUpload/';if($_FILES["fileUp"]["size"] < MAX_SIZE){    if(move_uploaded_file($_FILES['fileUp']['tmp_name'], $target_path)) {    echo "The file has been uploaded";    } else{    echo "Error Uploading!";    }}else{echo "Large size!";}

This class allows you to create highly dyanamic tables easily and quickly. It hasfull support for anything you can throw at it. It supporst CSS, and all other tagsyou may want, even ones you make up. It can handle truly dynamic tables. You cancreate a single 'layout structure' and it can handle dynamic col and row spans, changingin the number…

Create a sortable table with multi-column sorting capabilities.A simple Table Sorter.tablesorter is a jQuery plugin for turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. tablesorter can successfully parse and sort many types of data including linked data in a cell. It has many useful features including: Multi-column sortingParsers for sorting text,…

onclick empty text boxwhen you click text box then empty text box and when you out text box without enter any words then insert default Value  <input name="username" type="text" value="username" onfocus="if(this.value=='username')this.value=''" onblur="if(this.value=='')this.value='username'" /> See Exampleif  you Like this code then Please do the comments

jQuery toggle ExamplesIf more than two handlers are provided, will cycle among all of them. For example, if there are three handlers, then the first handler will be called on the first click, the fourth click, the seventh click, and so on.The method is provided for convenience. It is relatively straightforward to implement the same behavior by hand, and this…

jQuery onmouseover + onmouseout / hover on two different divsTo make it all work, we first need to add the jQuery library script between the tags.<script src="jquery-1.4.4.js" type="text/javascript"></script></div>This code past body Tag<div id="div_1">    Here Hover</div><div id="div_2">    Here content to show</div>$(function() {jQuery('#div_2').hide(); jQuery('#div_1').mouseover(function() { jQuery('#div_2').fadeIn();});jQuery('#div_2').mouseout(function(){ jQuery('#div_2').fadeOut();});});if  you Like this code then Please do the comments   

A Simple Mouseover Hover Effect with jQueryTo make it all work, we first need to add the jQuery library script between the tags.<script src="http://yoursite.com/jquery.js" type="text/javascript"></script></div> Now lets create the function that will make it all work.<script type='text/javascript'>$(document).ready(function(){ $(".button").hover(function() { $(this).attr("src","button-hover.png"); }, function() { $(this).attr("src","button.png"); });});</script> The one thing you need to make sure is that the classname in the jQuery function…

Characters Validation You want to Type only Characters then use this Function if you Type numeric the return falsevar charSetName="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function isName(myst) {var i;for (i = 0; i < myst.length; i++) {var c = myst.charAt(i);if (charSetName.indexOf(c) < 0) {return false;}}return true;}

Close