Created
March 12, 2015 10:32
-
-
Save ichim-david/3103c3459afbb2bcba86 to your computer and use it in GitHub Desktop.
jquery overrides parameters object
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $("<a class='sdfdaf' />", { href: 'ddd', text:'Explore chart interactively'}); | |
| // "<a class='sdfdaf' />" | |
| // correct way | |
| $("<a />", { href: 'ddd', text:'Explore chart interactively', class:'sdfdaf'}); | |
| // <a href="ddd" class="sdfdaf">Explore chart interactively</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment