Read the following: http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery
Your question is not clear: the first sentence sounds like you want to use jQuery to get a list of all the form names on the page, but then you say you want to find "searchForm", meaning that you want to select a form that you already know the name.
To get all the form names and save them in an array:
var names = []; $("form").each(function() { names.push(this.name); });
To select a form that you already know, name:
$('form[name="searchForm"]') // or if the name is in a variable: var name = "searchForm"; $('form[name="' + name + '"]')
Or you can simply select by id:
$('#searchForm')
source share