[jQuery] markReadOnly

[jQuery] markReadOnly


Hello.
I'm trying to make inputs readonly on click event. At the moment I'm
using the inelegant onClick="markReadOnly('name')"
Does anyone know how I can implement this with in jQuery?