Jquery searching array and going to page after button is clicked

Jquery searching array and going to page after button is clicked

So I have not started writing the code for this yet. I am just kind of planning everything out before I start, but I wanted to see if this was possible. So basically I'm making a project where people can go to a website and hire people for work. House work, yard work, stuff like that. So I want to have an option that if someone was referred to the website that they could just enter the workers name, and after they got search it would take them to that workers page. So if I had all the workers in a array is it possible for jquery to search that array for the workers name, and go to their page after the search button is clicked? Of course if the name is wrong it would throw an error