$( document ).ready(function() { // after the page elements are all loaded, then run the script // Set the input field with unique ID #email to a value $("#app").val($.urlParam('app')); });