Thursday, February 14, 2013

How compare the to decimal point values using javascript


// check the amount greater...

if(Math.max(parseFloat(amount).toFixed(2),parseFloat(bal).toFixed(2))==parseFloat(amount).toFixed(2))
{
alert("amount is greater"+amount);
}

Bind Some Event to Element and trigger that function when click the element

Scenario: Suppose if we used same click event function in various web pages. if you want do some logic some page button for that need to re...