Skip to content
This repository has been archived by the owner on May 24, 2019. It is now read-only.

Commit

Permalink
Enhancements
Browse files Browse the repository at this point in the history
* Changelog:
* 1. Changed instances of attr to prop, applied necessary corrections.
* 2. Changed Object.prototype.toString.call to typeof
* 3. Fixed bug with radio button by allowing the passing of "name"
parameter.
* 4. Allowed passing of arrays only for multiple selects and checkboxes
* 5. Removed var nameLen = name.length; from else if tag=='select',
multiple
* 6. Using floodling on an already selected or checked value (for multi
selects and checkboxes) now deselects it
  • Loading branch information
beatobongco committed Mar 3, 2013
1 parent 663d790 commit 540f84e
Show file tree
Hide file tree
Showing 14 changed files with 587 additions and 20 deletions.
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/floodling.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/libraries/sass_stdlib.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/scopes/scope_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

241 changes: 241 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions examples.html
Expand Up @@ -67,20 +67,20 @@ <h3>Image Button</h3>
<p>&nbsp;</p>
<p>Check <a href="//github.com/hyubs/floodling">GitHub</a> for a complete list of supported form elements.</p>
</form>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="jquery.min.js"></script>
<script src="jquery.floodling.js"></script>
<script>
$(function() {
// You can use a selector for the specific element
$('#myF1').floodling('hello');

// Or, you can use a JSON object
$('#myForm').floodling({
f2: "foo2",
f3: "foo3",
f4: "foo"
});

// Or, pass a name+value pair
$('#myForm').floodling('f5[]', 'foo');
$('#myForm').floodling('f5[]', 'doo');
Expand All @@ -93,6 +93,6 @@ <h3>Image Button</h3>
$('#myForm').floodling('f10', 'door');
$('#myForm').floodling('f11', 'doob');
$('#myForm').floodling('f12', 'http://lorempixel.com/200/200/food/');

});
</script>

0 comments on commit 540f84e

Please sign in to comment.