Skip to content

Instantly share code, notes, and snippets.

@jamesarosen
Created January 25, 2011 16:38
Show Gist options
  • Save jamesarosen/795175 to your computer and use it in GitHub Desktop.
Save jamesarosen/795175 to your computer and use it in GitHub Desktop.
// The following goes in a Javascript widget:
(function() {
// fetch parameters from the URL:
var queryParameters = jQuery.queryParameters();
// set field values:
jQuery('#some_field_id').val(queryParameters['field_name']);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment