Set .val() if attribute is "value" so that <input> field value is dispalyed