In a search text box when a user types in & the text after this is not passed to the function.
So if industry & test is typed in and submitted, only industry is passed to the function. How do i accept in the amp sound?
Text box:
Search <input type="text" id="searchtxt" /><img class ="SearchNow"src="/Content/img/search1.png"/>
Jquery to call function:
$(".SearchNow").click(function () {
var selected = $('#searchtxt').val();
if (selected != null) {
if (selected != "") {
window.location = '@Url.Action("search", "Products")?partnumber=' + selected;
}
}
});
function where text is not all coming in:
public ActionResult search(string partnumber)
{
}
Wrapped it with: