[jQuery] [HOWTO] Rewrite my own library functions to jQuery?

[jQuery] [HOWTO] Rewrite my own library functions to jQuery?


I have a lot of little functions I use on my website, like these. Is
there a standard way how I should rewrite them to jQuery? Could
somebody give me an example with one of these functions to go by,
using best practices? Your help would be greatly appreciated!
function select_goto(obj, base_url) {
var selected = obj.options[obj.selectedIndex].value, url = '';
url = (selected == 'ignore') ? base_url : base_url + '?type=' +
selected;
document.location.href = BASE_HREF + url;
}
function limitChars(obj) {
obj.value = obj.value.replace(/[^-a-z0-9_]/ig,'');
obj.value = obj.value.toLowerCase();
}
function arg(index) {
var url = String(document.location).split("//");
var pad = url[1].split("?");
var arg = pad[0].split("/");
return arg[index];
}