site profile thumbnail

Description

This script allows you to easily add clear value buttons to your forms. Simply add the ms-code-clear-value attribute to any button, with a value equal to the value of the input(s) you want to clear. For example, ms-code-clear-value="first-name,last-name" would clear the inputs with attributes of data-ms-member="first-name" and data-ms-member="last_name". You can target a single input or multiple inputs separated by commas. The script handles the logic of finding the matched inputs and setting their values to empty strings. Add clear value buttons to provide a better UX and increase form completion rates! Memberstack is not required to use this script.
cleardeleteformformssignupformcontact formmultistepformcontact formsundoerase

More by Memberstack

See profile