I am trying to dynamically create objects using JQuery. I have a json object with elements I want to pull and add onto the object. So far I've been using this line and I am getting text on my object:
$(this.node).find('a').text(dict.get('text1'));
I want to add a second object, "text2", with a paragraph tag. What is the function to add tags to a jquery object in a similar manner to how I've been adding text?
Edit: I want to end up with an object that has two paragraph tags which I can add class/id tags to
datawhat you're looking for: api.jquery.com/data