I need to create the object with the structure below and insert options.
myElem = $("<div class='row'> <div class='form-group'> <label for='multiple-selected' class='col-md-offset-1 col-md-2 control-label'>Teste</label> <div class='col-md-5'><select id='multiple-selected' multiple='multiple'></div> </div> </div>");
And then insert option on that object. I do not want to do concatenating pure text (by putting the html in hand). Can you do this with append? I thought of appendTo () but the object has not yet been inserted into the html would anyone have a hint?