add support for input names which include 'dot's

In Grails many times the field name is something like "book.title"  this breaks in the jQuery selector.  So my change would allow for dots in the selector, but it assumes we are looking for the 'name' attribute and not the 'id' as it was previously.