I'd like users with JavaScript enabled to see page results.php. Users with JavaScript disabled should see results_d.php.
To do this I'm initially displaying my links with results_d.php. Then by using JavaScript to change the destination in the links, only the users with JavaScript enabled will see the rich content.
There are a few questions on here about using jQuery to change the whole href destination, but how can I just change the file name and keep the query string as it is?
I was thinking something like this, but it's not working...
$(document).ready(function()
{
$('a').attr('href').replace('results_d', 'results');
});