You need to sign in to do that
Don't have an account?

Hide label of inputfield in visualforce page using jQuery
I can get the visualforce page to hide the input field but I'm unsure how to hide the associated label. How can I hide the label as well?
<apex:pageBlockSection id="yearInfoPageBlock" title="Fiscal Year Information"> <apex:inputField value="{!Fiscal_Year__c.name}" onclick="test();"/> <apex:inputField value="{!Fiscal_Year__c.Is_Current__c}" id="isCurrent"/> </apex:pageBlockSection> <apex:includeScript value="{! $Resource.jQuery }"/> <script type="text/javascript"> function test(){ $('[id$="isCurrent"]').hide(); $('[id$="isCurrent"]').hide(); } </script>
No, it's not possible if you can have a look the HTML which will generate in the backend is below where "pgBlkSecItemRating" will apppend to "txtRating" ID Please let me know if the helps.
As a common practice, if your question is answered, please choose 1 best answer.
Additionaly you can give every answer a thumb up if that answer is helpful to you.
Thanks,
Arun
All Answers
Your code seems fine, but you can take the help form the below examople
Thanks,
Arun
No, it's not possible if you can have a look the HTML which will generate in the backend is below where "pgBlkSecItemRating" will apppend to "txtRating" ID Please let me know if the helps.
As a common practice, if your question is answered, please choose 1 best answer.
Additionaly you can give every answer a thumb up if that answer is helpful to you.
Thanks,
Arun