$("#inputField").focus()
when the cursor focuses on the texbox i want to do one space, so it moves to the right a little further!! if you know what i mean thanks
function insertParamIntoField(anchor, param, field) {
var query = anchor.search.substring(1, anchor.search.length).split('&');
for(var i = 0, kv; i < query.length; i++) {
kv = query[i].split('=', 2);
if (kv[0] == param) {
field.value = kv[1];
return;
}
}
}
$(function () {
$("a.reply").click(function (e) {
console.log("clicked");
insertParamIntoField(this, "replyto", $("#inputField")[0]);
$("#inputField").focus()
e.preventDefault();
return false; // prevent default action
});
});