<input type=»text» onkeypress=»return bar(event)»>
Actually that’s not true at all.
It’s actually very simple to use and incredibly useful if you like associative arrays.
You just have to make sure to use it on an associative array and not an object.
Куча готовых ajax решений.