onclick="var searchb = jQuery('#'+searchBoxLinkId).value;
var searchlink= window.location.protocol + '//' + window.location.hostname+'/Dave2/Pages/FAQSearch.aspx?category='+category+'&k='+searchb;
window.location = searchlink;" href="javascript: {}">
I have added this line of code to my javascript/html but it gives me the error Unterminated string constant however I cannot see where the problem is.
I have to do it this way as I am doing something in sharepoint and it seems like this way is the only way it will work