I have the following url:
http://localhost:27903/detalhes.aspx?id=3014953&stars=70
I need to get the parameters separated, id and stars, any tips I've already tried everything, follow my code:
$('tbody#corpo2').append(
'<tr><td style="border:solid 1px #ccc; text-align:center">' + location.search.substring(4) + '</td>'
+ '<td style="border:solid 1px #ccc">' + "teste" + '</td>'
+ '<td style="border:solid 1px #ccc">' + location.search.substring(17).replace("s=", "").replace("=","") + ' </td>' + '</tr>');
});