[jQuery] clicking on the link changed the URL


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
16 views
Good afternoon.
Please tell me how to implement the following:

On the page there are some links. By clicking on them you are going to change one of the GET-parameters and updated the page.

The problem is that the id references must be as a GET parameter.

Now I have done so:

PARAMETER

jQuery('.groups').click(function() {
window.location = jQuery.query.set("group", PARAMETR);
});
by | 16 views

2 Answers

0 like 0 dislike
If I understand you correctly, you GET the option click to change this:
by
0 like 0 dislike
The problem in getting the id clicked?
\r
\r
jQuery('.groups').click(function() { var id = $(this).attr('id') window.location.href = /* desired actions with an id */ }); 
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
asked Jun 7, 2019 by mrKhatter
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
110,608 questions
257,187 answers
0 comments
40,796 users