forms - javascript editing fields after manual edit of field -


i've looked everywhere on this.

basically have script changes value of fields based on radio selection.

for example: think of radio button gets credit card data. works when page loads , selects radio. correctly load data of radio button.

now when choose edit fields manually, using "new card" form, if change mind , go select presaved card, no longer update fields edited manually. ignore request change values via javascript code working. note: still continue work fields left alone *did not manually type into/edit

so wondering else had problem , 1 fix it.

i not sure if understand i'll take shot. suggestion set apply css class "is-dirty" field once has been updated , check see if given field has class before updating it.


Comments