Skip to content

Instantly share code, notes, and snippets.

@srujan21
Created July 21, 2016 05:03
Show Gist options
  • Save srujan21/1e3fd6a165e25c024546066979bbbd3a to your computer and use it in GitHub Desktop.
Save srujan21/1e3fd6a165e25c024546066979bbbd3a to your computer and use it in GitHub Desktop.
A way to set value of controller variable from javascript
<script>
j$('input[id$=offset]').val(joffset);
</script>
<apex:inputHidden value="{!offset}" id="offset" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment