Navigation Bar

Tuesday, August 4, 2009

Remove Space In JavaScript

function RemoveSpaces(ctrlId) {
val = document.getElementById(ctrlId).value;
document.getElementById(ctrlId).value = val.split(' ').join('');
}

onblur="RemoveSpaces(this);"

No comments:

Post a Comment