I have created a button on my page that its HTML looks like this:
Now in my JavaScript I have a jQuery that finds that button like this:
$('.personlistbtn').click(function(e) {
console.log("inside click event of person list");
console.log("provider id was this " + provider_id);
// ?????
});
I want to attach some parameters to my href button that posted above so it can go to a new page in my Rails app with those parameters I am passing to it so hopefullu something like this:
<a href="/pharmacy/patients?provider_id=234" >
Notice I attached that ?provider_id=234 to it. How can I do that?