Jquery URL Parameter -


i've got function:

$.urlparam = function(name){             var results = new regexp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);             if (results==null){                 return null;             }             else{                 return results[1] || 0;             }         }; 

fiddle

i put ?param1 behind url nothing showing up, firebug console doesn't anything.

can guys me?


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -