Activity Forums Salesforce® Discussions How to get element id of Salesforce Visualforce Components to be used in Javascript?

  • shariq

    September 22, 2018 at 5:02 pm


  • Parul

    September 22, 2018 at 6:12 pm

    Created Date: <apex:inputText id="dah" value="{!created}" size="50"

    function go(field) {
    var huh = document.getElementById(field).value;
    alert(huh); //returns the string u put inside of input text field

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos