[#1382] Fixed jQuery bug
Improved jQuery code
Fixed sphinx syntax
Fixed code, thanks to @stof
Merge pull request #2158 from WouterJ/issue_1382

[Cookbook/Form] Fixed jQuery bug