I have below button list
<button class="button button2">Hospital</button>
<button class="button button2">Medical</button>
<button class="button button2">Pharmacy</button>
what is the best on click function to replace my Javascript url (dbexport2.php) on below script
// Change this depending on the name of your PHP or XML file
downloadUrl('dbexport2.php', function(data) {
var xml = data.responseXML;
I would like to change the php file based on the button click, example for hospital it would like to be "downloadUrl('hospital.php')" for medical it would like to be "downloadUrl('medical.php")