soyasauce
9/1/2017 - 10:38 AM

Url paraméterek használata

// url parameterek
$.urlParam = function(name){
    var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
    return results[1] || 0;
}
$('#szolgaltatas').val(decodeURIComponent($.urlParam('targy') + ' - ' + $.urlParam('idopont')));