the problem that I have is when I upload my document to the server.
the server has a different path than my local document so I have to manual change the path every time I need to do an upload.
How can I remove the hard code path from my code and replace it with something else?
function ExportToExcel() { $('#GetAction').val("ExportToExcel"); $('#SearchRulesForm').attr('action', '/bcwa/CareAdvanceBusinessRules/ExportToExcel'); $('#SearchRulesForm').submit(); }