getelementbyid changed to .val()