How to splice the href of a tag

<a href="http://..../index.php/index/index/pay.html?it=" + $("-sharppaymoney").text()>

above is an error code. I want to pass the value of label of id= "paymoney" as a parameter.
how to write it correctly

May.26,2022

<a id="a-link" href="http://..../index.php/index/index/pay.html?it=">
<script>
var href = $('-sharpa-link').attr('href');
$('-sharpa-link').attr('href',href + $("-sharppaymoney").text());
</script>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e47d10-4d001.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e47d10-4d001.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?