Hi, Is it possible to disable html elements ( text field, drop down) using CSS ? i know its possible using Java Script , just wondering if its possible using CSS; it is a requirement related to JSF , so if CSS can do the job it will make my job easy
The "when" and "how" of disabling them is what is important here.
For example, if the user selects a certain item from a combobox that may, depending on the value, enable or disable certain other HTML tags on the page. This should be done with a JavaScript function that changes state of the disabled attribute of form tags or even the visibility of other HTML tags.
If you are sending an entire page from the server via JSP/JSF or just by composing HTML in Java or with XSLT, then you should set this in the server. However it is initially set, if there is a possibility that the user can do something that will change it, then you should have the JavaScript option too.
Just my $0.02 worth.
<a href="http://labryssystems.net/pblog/index.php" target="_blank" rel="nofollow">Javaville Gazette</a><br />Non-cooperation with evil is a duty. -- Mahatma Gandhi