Add val method to element helper