I am writing a small script at the moment that requires a text box to be readonly for a period of time and once that time is up then I want to remove the readonly attribute, is there a way to allow this to happen after a duration of time has passed or after an event has happened.
jQuery(document).ready(function($) { $("input").attr("readonly", "readonly"); $("input").removeAttr("readonly"); }); not sure how to delay the removeAttr event for a duration of time as I can only find a delay in the effects area. Thankyou for your help