Html inputs have their own placeholder/defaultvalue attr, no need for js.