Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- jQuery(document).ready(function($) {
- setTimeout(function(){
- var getUrlParameter = function getUrlParameter(sParam) {
- var sPageURL = decodeURIComponent(window.location.search.substring(1)),
- sURLVariables = sPageURL.split('&'),
- sParameterName,
- i;
- for (i = 0; i < sURLVariables.length; i++) {
- sParameterName = sURLVariables[i].split('=');
- if (sParameterName[0] === sParam) {
- return sParameterName[1] === undefined ? true : sParameterName[1];
- }
- }
- };
- var ammbesadorName = getUrlParameter('ammbes');
- jQuery(".hs_ambassador_name").find("input").val(ammbesadorName);
- console.log(22)
- }, 3000);
- });
- </script>
Add Comment
Please, Sign In to add comment