Advertisement
Guest User

For U!

a guest
Nov 30th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Without knowing the format I can't provide a guaranteed solution, however if you would like to automate this task you can input a script like the one below to accomplish this. If you can share the HTML for some of the fields I should be able to make it specific to your issue.
  2.  
  3.  
  4. var wrongYear = "2007";
  5. var correctYear = "2008";
  6.  
  7. var textBoxes = document.getElementsByTagName("input");
  8. for each(tb in textBoxes) {
  9.    if (tb.id != undefined) {
  10.        if (tb.id.indexOf(wrongYear) > -1) {
  11.            var correctField = document.getElementById(tb.id.replace(wrongYear, correctYear));
  12.            correctField.value = tb.value;
  13.        }
  14.    }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement