Created
July 2, 2015 16:45
-
-
Save salami-art/efe3f77a1196c09e85be to your computer and use it in GitHub Desktop.
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
//Application That lists all the attributes of the elements inside html text in a textarea | |
var elements = $('<div>'+$('textarea').val()+'</div>').find('*'); | |
elements.each(function() { | |
var el = this; | |
var style = ""; | |
console.log(el); | |
$.each(el.attributes, function() { | |
console.log(this.name); | |
}); | |
// el.attr('style', style); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment