Skip to content

Instantly share code, notes, and snippets.

@ichim-david
Created March 12, 2015 10:32
Show Gist options
  • Select an option

  • Save ichim-david/3103c3459afbb2bcba86 to your computer and use it in GitHub Desktop.

Select an option

Save ichim-david/3103c3459afbb2bcba86 to your computer and use it in GitHub Desktop.
jquery overrides parameters object
$("<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