I had a code that works but the problem is it just append the parameter instead of replacing it with a new parameter, Here is my working code:
jQuery(\'#i