Works with Memberstack, but Memberstack is not required to use this script. Simple add the attribute ms-code-clear-value="your_field_ID(s)" to your clear input button(s).