Skip to content
Browse files

add GitHub Flavored Markdown to README

* This makes the example code easier to read,
  especially when perusing the docs on github
  • Loading branch information...
1 parent c6c6974 commit 3f7bcc5bd7920ec55d696a3e4c732ae968191cb3 @phlipper phlipper committed Dec 24, 2012
Showing with 20 additions and 19 deletions.
  1. +20 −19 README.md
View
39 README.md
@@ -28,26 +28,27 @@ Be sure to have the correct includes obviously.
Example usage. This is a very simple setup.
- $(function() {
- $("#demoForm").formwizard({
- formPluginEnabled: true,
- validationEnabled: true,
- focusFirstInput : true,
- formOptions : {
- success: function(data) {
- $("#status").fadeTo(500,1,function(){
- $(this).html("You are now registered!").fadeTo(5000, 0);
- })
- },
- beforeSubmit: function(data){
- $("#data").html("data sent to the server: " + $.param(data));
- },
- dataType: 'json',
- resetForm: true
- }
- });
+```javascript
+$(function() {
+ $("#demoForm").formwizard({
+ formPluginEnabled: true,
+ validationEnabled: true,
+ focusFirstInput : true,
+ formOptions : {
+ success: function(data) {
+ $("#status").fadeTo(500,1,function(){
+ $(this).html("You are now registered!").fadeTo(5000, 0);
+ })
+ },
+ beforeSubmit: function(data){
+ $("#data").html("data sent to the server: " + $.param(data));
+ },
+ dataType: 'json',
+ resetForm: true
+ }
});
-
+});
+```
# Live Demo

0 comments on commit 3f7bcc5

Please sign in to comment.
Something went wrong with that request. Please try again.