Hi ,
In my webpage, I have a filtering mechanism to retrieve the tabular data as per the filter I used.
Let us assume that the webpage url is [url]http://myhost.com/homepage/employee/project
Now if I select a project name which has ‘&’ in it , for example ‘Design & Verification’ and press go , it calls the following Javascript function :
[CODE]function get_action (form_element) {
if ($(“#project”).val()) {
var str = $(“#project”).val();
$(“#filters”).attr(“action”, “/homepage/employee/project/” + str);
}
}
Here #filters is the form id and #project is the textbox id for that filter. Now if I write ‘Design & Verification’ in the textbox (#project) and press submit button,
in the above JS function str is having ‘Design & Verification’. And this & is not regarded as the value of the search string. The get request considers it used so as to separate the parameters passed and the search is failing.
How can I avoid this problem ?
Thanks.