Calling val(text) now clears an element of its existing text, more like jQuery.