Use jquery variable as part of html link

Use jquery variable as part of html link

Dear sir / madam

  1. var mob1=$(''#mob1').val();
  2.    
  3. var url= "mobilememberidfill.php";
  4. data = {
  5. mob1: mob1
  6. }
  7. $('# mobilememberiddiv').load(url,data,checkmobileexists)  ;
Above ajax gets me ID of the mobile number stored  in DIV with id  mobilememberiddiv

in this case, (when mobile number exists),  i get its ID  from
  1. var id = $('# mobilememberiddiv').text();

 and in this case

i want to display message

  1. $('#mobilemessagediv').html("Mobile Number Exists!! <br> <a href='payfees.php?id=ID'' > Cilck to make payment </a> ");
ID will replace the actual value