Menu
Hi….
I have this script:
function SearchWS(Test)
{
var searchVal = encodeURIComponent( document.getElementById(Test).value );
location.href = “/Search.jsp?SearchWS=” + searchVal;
}
So what it does is get the value of id ‘Test’ and add it into the url….
The script work fine…. but…
I need to get is the value of the id ‘Test’ is ‘Sample text’ I don’t want it to summit.. Can anyone help !?