Writing javascript code for default filters

Hi,

Please provide steps for writing javascirpt code for the filters(default) provided by arcadia for customization related to requirement provided.

Example: adding events, add/remove classes, adding logic etc.

Keyup/Keydown event: to get entered character type, based on that we have to display message.
onblur: some cases we have to add css class, some cases we have to remove css class