Created
January 14, 2014 09:38
-
-
Save Dexterstat/8415717 to your computer and use it in GitHub Desktop.
Add element to a list or another element
This file contains 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
function add_element(content, element, type,id) { | |
jQuery(element).append(jQuery('<' + type + ' id="'+id+'">').append(content)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment