I have a javascript string that contains the following:
data-href="/Admin/Edit?pk=0001I&rk=50050055"
How can I change this string so the value of rk is changed to a value held in the string newRowKey? Not sure if it helps but the data format always looks like this with the rk followed by an = and then terminated with the “
to change it if your building the URL
or replace it if you know the existing value
if you do not know the value of rk, but you know its last in the URL, you could use indexOf to find it.