0

I am trying to call the value called 'a.id' in my script functions

 <apex:column value="{!a.id}" headerValue="Publication SFDC Id" id="ID"/> 

                  <script>
                         var j$ = jQuery.noConflict();

                        j$(document).ready(function(){
                            j$("#Submit").click(function() 
                                { 
                                var input = String(document.getElementById("ID").value);

Is it possible? If not how can I do it? Thanks in advance

  • What problem are you facing? – Shailesh Patil Jul 27 '15 at 10:29
0

You can do something like this - Assuming "a" is controller side variable.

<script>
alert('{!a.id}');
</script>

This will give proper values of the controller variable.

Do let me know if it helps.

Thanks,

Ray

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.