I been searching but I can only find articles talking about one or the other. Which one is better?
I\'m making a small web app where performance is not a big concern
jQuery does so many nice little error handling things (look below) that I would never write a line of javascript without jquery in a browser again.
val works on checkbox groups, selects, gets html, and the
like.$ lets you use sizzle selectors, so in the future, you can
easily switch between an ID and a CSS path.jQuery, that the time you save maintaining your code
outweighs any speedup that you admit your users won't see. Finally,
jQuery is a very popular, very widely used library. They will make
$ and val as fast as they can.