Метод jQuery Рошамбо не заботился о расшифровке URL
http://snipplr.com/view/26662/get-url-parameters-with-jquery-- Улучшено /
blockquote>Просто добавлена эта возможность и при добавлении в оператор return
return decodeURIComponent(results[1].replace(/\+/g, " ")) || 0;
Теперь вы можете найти обновленный gist:
$.urlParam = function(name){ var results = new RegExp('[\\?&]' + name + '=([^]*)').exec(window.location.href); if (!results) { return 0; } return decodeURIComponent(results[1].replace(/\+/g, " ")) || 0; }