
Simplify "value" and "text" retrieval of selected option in a dropdown via this small jQuery addon
Add these small definitions to your personal JS script to simplify getting the "text" and "value" of a selected option in a SELECT dropdown.var soval =...
JavaScript function to format percentages
Use this little function in your personal JS script to format percentages:function formatPercentage(x) {
x = isNaN(x) || x === '' || x ===...
Small JavaScript function for formatting US Dollars
Use this little function in your personal JS script to format any number to US Dollars:function formatMoney(x) {
x = isNaN(x) || x === '' ||...