Activity Forums Salesforce® Discussions how to fetch value of tag in script tag in a visualforce Page?

  • Aman

    Member
    May 1, 2018 at 8:28 am

    Hi Rajan,

    <apex:inputHidden value="{!theme}" id="theHiddenInput"/>

    You can use the below script

    <script>
    var userThemeDisplayed = $('[id$=theHiddenInput]').val();

    </script>

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos