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
2010-10-18 08:14:46