Hi All,
I have a form what populates two fields with identical data one is read only the other can be edited.
The below JavaScript works so only fields assigned the class "Name" are highlighted red when the data is changed. However when the form is submitted for review the background returns to white.
$(document).ready(function(){ $('.Name input').on('keydown',function(){ $(this).css('background','#ff4d4d'); }); $('.reset-highlight select').on('change',function(){ $('.Name input').css('background','none'); }); });
Any assistance would be appreciated
Thanks
Mark