[jQuery] clicking on the link changed the URL

0 like 0 dislike
4 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 | 4 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,186 answers
0 comments
28,875 users