var px = document.querySelector('#px'),
customAmount = document.querySelector('#custom-amount');
px.addEventListener('change',function(){
- // Update input name to prefill FDN form
+ /* Update input name to prefill FDN form */
if (px.value) {
px.name = "px";
customAmount.name = "custom-amount";
customAmount.value = "";
customAmount.style.display = "none";
-
}
else {
customAmount.style.display = "inline-block";