谁能帮我将JavaScript代码转换为Jquery代码?

我编写了这段代码,用于从另一种表单中获取数据并将其保存到表中,现在,我想用jquery编写此代码,请帮我将代码转换成jquery。

<script>

const params = new URLSearchParams(document.location.search);
<!-- $(document).ready(function(){ -->
 <!-- $("fname")(function(){ -->
<!-- var getname = $('#fname').val(); -->
<!-- }); -->
<!-- }); -->


    var getname=$.param('fname');


var getphone = params.get("phone");
var getbirthday = params.get("birthday");
var getemail = params.get("email");
var getdepartment = params.get("department");
var getaddress = params.get("address");
var getstate = params.get("SelectState");
var getcity = params.get("SelCity");
var getzip = params.get("zip");

window.onload=function myFunc(){

document.getElementById("nameTb").innerHTML=getname;

document.getElementById('birthdayTb').innerHTML=getbirthday;

document.getElementById('phoneTb').innerHTML=getphone;

document.getElementById('emailTb').innerHTML=getemail;

document.getElementById('departmentTb').innerHTML=getdepartment;

document.getElementById('addressTb').innerHTML=getaddress;

document.getElementById('stateTb').innerHTML=getstate;

document.getElementById('cityTb').innerHTML=getcity;

document.getElementById('zipTb').innerHTML=getzip;
};
</script>

<body>

<table  class="table table-bordered">
<tr>
<th>Name</th>


<th>DateOfBirth</th>

<th>Phone</th>

<th>Email</th>

<th>Department</th>

<th>Address</th>

<th>State</th>

<th>City</th>

<th>Zip</th>

<th>Action</th>

</tr>
<tr>
<td id="nameTb"></td>
<td id="birthdayTb"></td>
<td id="phoneTb"></td>
<td id="emailTb"></td>
<td id="departmentTb"></td>
<td id="addressTb"></td>
<td id="stateTb"></td>
<td id="cityTb"></td>
<td id="zipTb"></td>
<td><a href="javascript:history.go(-1)" class="btn btn-primary" title="Return to the previous page">Edit</a>
<a href="trainee.html" class="btn btn-danger"title="All Data will get Deleted">delete</a></td>
</tr>
</table>

在这里,我已从上一页中获取数据并保存并以表格形式显示。请帮助我将此脚本代码转换为Jquery代码。