Use jquery variable as part of html link
Dear sir / madam
- var mob1=$(''#mob1').val();
-
- var url= "mobilememberidfill.php";
- data = {
- mob1: mob1
- }
- $('# 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
- var id = $('# mobilememberiddiv').text();
and in this case
i want to display message
- $('#mobilemessagediv').html("Mobile Number Exists!! <br> <a href='payfees.php?id=ID'' > Cilck to make payment </a> ");
ID will replace the actual value