Today I am sharing number to text convert script that simply input number and produce its wordy counterparts. It is the most simple script and easy to implement in the project. Example : Suppose you want to make ‘ 12345 ‘ read like ‘ twelve thousand three hundred forty five ‘ , Enter your number in text [...]
Continue reading...28. May 2010
In the previous post you have read about basic javascript validations. Here I am posting some complex javascript validations like validation to restrict user to enter “only characters”, “only number”, “char and num both” and email validation. Here demo contains some basic fields for validation. <form method="post" name="myform" onsubmit="return validate()"> First Name: <input type="text" name="fname" id="fname"> Phone: <input [...]
Continue reading...28. May 2010
Simple Javascript validation on form element. It is demo on one element of the form. You need to create simple form like below with one form element and one submit button. <form method="post" name="user_regform" onSubmit="return check_validity();"> <input type="text" name="fname"/><br> <input type="submit" name="Submit" value="Save" /> </form> You will call a java script function (check_validity()) on submit of the form. It simply [...]
Continue reading...27. May 2010
How to select value of dropdown with button? This can be accomplish with the simple function I wrote few days ago. Lets start, you need to make a HTML form with a select box and a simple button. On this button you need to call a JavaScript function. In this js function you simply [...]
Continue reading...25. May 2010
Hello Friends, It is a simple script for selecting all check box in javascript. You need to put these functions in tag. It will select all checkbox of that form. You can call them on a link or image. like this - <a href="javascript:selectall()">Select All</a> <a href="javascript:unselectall()">UnSelect All</a> Concept is simple, we are just counting no. of [...]
Continue reading...19. May 2010
Image preload script using javascript. It is just a simple script that preloads images on loading of the page. It scans images in whole page while loading and assign into the source of image. This script also function for onmouseover and onmouseout, it will change image on mouse over and out, results fast image loading. Enjoy [...]
Continue reading...
2. August 2010
2 Comments