Removing of attributes in JavaScript

Given an element:

<input id="elem" value="text">

Remove the value attribute from it.

enru