Hi there,

You can probably just set the disabled attribute to true.

$('someElement').click(function() {
        $('someInput').attr('disabled', true);
});

Hope that helps.


--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Jun 5, 2008, at 6:32 AM, [EMAIL PROTECTED] wrote:


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?


Reply via email to