Good Day.
I have an...interesting issue. I created a function that is set to run on the onblur event of a html textbox control. It checks what the value is of the textbox and if the value is null or the length is equal to 0 then it sets the value to 0. If there is a value, it runs another function that formats the value to Currency.
On the form, not all textboxes are needing to be formatted as currency but they all need a value. So, my question is, for those controls that do not need to be formatted, how does one go about editing the function so it formats to Currency textboxes but not the others? I realize I could just create another function to do the work, it just seems redundant. Another question I have is that if I rework the function, should an array or some way of storing the control names be created so the function can loop thru that instead of looping thru the controls on the form?
function IfIsBlank(aTextField){
//if ...
Go to the complete details ...