A: 

To get the value of an input field with id you can do

$("#field-inputSearchString").val();

You cannot use :contains because it searches for elements that contains the text.

If you want to pass the string to the href of an anchor tag

var href = $("#anchorID").attr("href");
$("#anchorID").attr("href", href + $("#field-inputSearchString").val());
rahul
That's a good hint. Ty.
Chookie