Good method names are really important so its definitely worth thinking about.
It depends a bit on what valid means for each of the fields. If they are different then you could have something along the lines of:
- validTitle()
- validRating()
So, in the listener you would then do
if !validTitle()
//highlight the title field
It may also be useful to have a general method that calls each one and displays a general error.
- searchFormIsValid()
The main listener function could be called
- checkSearchForm()
In Angular this would be a watcher, so maybe even watchSearchForm()
Its good to try and break things down as much as possible and have each method doing as small a thing as possible.