<script type="text/javascript"> $("document").ready() { $(".number").mask("999,999,999.99"); // Masks all element with the class='number' } </script>is wrong. The ready() function takes a function as a parameter, it needs to be written this way:
<script type="text/javascript"> $("document").ready(function() { $(".number").mask("999,999,999.99"); });We're basically passing an anonymous function (a function that doesn't have a name, that's what the function() statement does). Our anonymous function doesn't take any parameters, hence the empty parenthesis in function(). Then the body of the function follows (inside of the curly-braces).