I have recently upgraded to Liferay 6.0, JSF 2.1 and jQuery 1.7.
Here is my html form:
<h:form id="fundRequestForm" action="" method="post">
<!-- Inside this I have various form field -->
</h:form>
The form generated in the html page source:
<form id="_jpfcpncuivr_A2262_j_id1:fundRequestForm" name="_jpfcpncuivr_A2262_j_id1:fundRequestForm"
method="post" action="">
</form>
I want to disable all the input fields in a form other than the hidden form fields.
here is my javascript for that
jQuery(document).ready(function()
{
jQuery('form#_jpfcpncuivr_A2262_j_id1:fundRequestForm input[type!="hidden"]').attr('disabled', 'true');
});
The input fields are not getting disabled. Please let me know what is wrong in this code.