", "answerCount": 1, "upvoteCount": 0, "datePublished": "2016-02-27T06:58:45.000Z", "author": { "@type": "Person", "name": "sandeep reddy", "url": "https://trailblazers.salesforce.com/profileView?u=0053000000CSrhPAAT", "affiliation": { "@type": "Organization", "name": "--" } }, "suggestedAnswer": [ { "@type": "Answer", "text": "Hi Sandeep, Below visualforce code should do what you want.

Appreciate your feedback to the answer, if it works. Thanks, Sunil.", "upvoteCount": 0, "url": "https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007T4ADrSAN", "datePublished": "2016-02-29T04:05:15.000Z", "author": { "@type": "Person", "name": "Sunil Madana", "url": "https://trailblazers.salesforce.com/profileView?u=0053000000A6tEjAAJ", "affiliation": { "@type": "Organization", "name": "Individual" } } } ] } } Skip to main content
sandeep reddy が「#Visualforce」で質問
tha was not getting 

please help me

vf page =

==================

<apex:page  id="a">

    <script>

    function fm(){

    var name=document.ElementById.HTML('a:b:c:d').value;

   

    

        

       }

    </script>

    <apex:form id="b">

    <apex:pageBlock id="c">

       <apex:inputText id="d" onfocus="fm()" /> 

      </apex:pageBlock>

    </apex:form>

   </apex:page>
1 件の回答
  1. 2016年2月29日 4:05

    Hi Sandeep, Below visualforce code should do what you want.

    <apex:page id="a">

    <script>

    function fm(){

    var name = document.getElementById("a:b:c:input").value;

    document.getElementById("a:b:c:output").innerHTML = "The typed value is "+name;

    }

    </script>

    <apex:form id="b">

    <apex:pageBlock id="c">

    <apex:inputText id="input" onchange="fm();" /><br/><br/>

    <apex:outputText id="output"></apex:outputText>

    </apex:pageBlock>

    </apex:form>

    </apex:page>

    Appreciate your feedback to the answer, if it works.

    Thanks, Sunil.