|
Using JQuery to disable all form fields |
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 div there is a form. The code below will disable all the input elements within that div. Every single one of them. In one line of code. How cool is that.
2 $(document).ready(function(){
3 $('#divLabel :input').attr('disabled', true);
4 });
5 // end
6</script>
What its actually doing is adding the disabled attribute to each input, then setting the value to 'true'.
Get familiar with how JQuery selectors work, the docs are here: http://api.jquery.com/category/selectors/
Check it out at ( http://www.dougestep.com/dme/jquery-disabler-widge... ).
$('#divLabel").find(":input').attr('disabled', true);
and dougs plugin can now be found here
https://github.com/dgestep/jquery-disabler
<a href="http://www.garaventa.co.uk">replica watches</a> would appear with a metal hangtag is if it was a bound edition. The metal hangtag would consistently be accompanied by one or two covering hangtags, or <a href="http://www.interface-online.co.uk">http://...; clear studded. If you see a purse with a metal hangtag alone (often gold-colored), it is fake, or at the actual atomic its authenticity should be questioned!The easiest way to acquaint whether a is affected or absolute is by <a href="http://www.visitdevonandcornwall.co.uk">br... replica</a> the central lining of the purse. For absolute purses, it will be a solid-color glassy material. There are exceptions to this aphorism in the Legacy band of <a href="http://www.garaventa.co.uk">louis vuitton replica</a> purses, but back this is a basal adviser I am not touching on that. Affected purses may be <a href="http://www.drhaushka.co.uk">omega replica</a> lined with solid-colored cottony (very rarely, alone high-quality knock-offs will accept this), or abundant added generally with the "signature C" lining apparent in the account below.
<br><br>
<br><br>
like for instagram
http://socialgrand.com/buy-instagram-likes/
page daily, this website is in fact good and the people are
actually sharing good thoughts.
I have implemented it on my site:
http://www.therowingmachinedoctor.com/
http://www.therowingmachinedoctor.com/the-concept-2-rower/