This article will show briefly guide you through how to smoothly animate a background color change using jQuery.
jQuery Version: 1.9.1
jQuery UI: 1.10.3
First, make sure you have linked to both jQuery and jQueryUI.
Put this code in you <head> section of...
var num = 10;
var result = num.toFixed(2); // result will equal 10.00
num = 930.9805;
result = num.toFixed(3); // result will equal 930.981
num = 500.2349;
Click Here to view a sample.
ASP.NET has a Page.Validate() method that is used to programatically validate an ASP.NET Form, however, Page.Validate() is a server side function and requires a postback. Its job is to run server side validation. So to run client-side validation, without causing...
This post shows you how to create a basic popup window using Java Script as well as a reference list of options for popups.
var divTag = document.createElement("div");
divTag.id = "divID";
divTag.style.margin = "0px auto";
will return “A”
charCodeAt(index) returns the char code for the character at a given
index position within a string (zero based index).
So if you want the char code for a single...
var e = event || evt; // for trans-browser compatibility
var charCode = e.which || e.keyCode;...
ASCII and HTML code table
# Symbol HTML Code | # Symbol HTML Code
32 [Space]   | 143 
33 ! ! | 144 
34 " " | 145 ' ‘
35 # # | 146 ' ’
36 $ $ |...