Explore BrainMass

Explore BrainMass

    Javascript: convert ampersands to "and"

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Write a Javascript function that converts all ampersands ('&') in a form field to "and" when the field loses focus (onblur).

    © BrainMass Inc. brainmass.com December 24, 2021, 6:30 pm ad1c9bdddf
    https://brainmass.com/computer-science/javascript/javascript-convert-ampersands-to-and-118394

    Solution Preview

    Following javascript function will convert all ampersands in a form field to "and" when the field loses focus ...

    Solution Summary

    An html file is also provided that demonstrates the javascript code in action.

    $2.49

    ADVERTISEMENT