Using JQuery to disable all form fields
Updated: 2010-12-23 16:05:00
, , , : Shaun Mccran My digital playground Home About Me Portfolio Projects Gallery Xbox 360 Contact 23 D E C 2010 Using JQuery to disable all form fields Posted By Shaun Related Categories : JQuery HTML Whilst writing a new timesheet application I added a function to lock' an entire dataset , IE stop a user from editing the form on the page . I'd spent a lot of time layout the timesheet page , designing the form , and help text etc . I didn't really want to destroy the visuals if a record was locked , I wanted it just the same , but non-active' . This is where JQuery is simply awesome . Understanding selectors' and the power they can give you , with only very simple construction is key . In this example imagine a page that has a div within it , the div has a id of divLabel' . Within that