Replace {appdomain} in href="http://mail.google.com/a/{appdomain}"

Replace {appdomain} in href="http://mail.google.com/a/{appdomain}"

well the title is basically it.

I am giving the user the ability to enter an app domain and i am using {appdomain} as a placeholder.

so i need something like

  1. $('#textbox').change(function(){
  2. replace('{appdomain}', $('#textbox').val();
  3. }); 
the only part i am stuck on is a function like replace() as i dont believe jquery has one.

{appdomain] is in links in a div with class of ghap.