do not rewrap $(element) several times. call .val() only when required.