Jquery: how to append elements to emtpy object?

Var Select = $("body"). Append("..."); //if you don't want that select, remove it. But it could feasibly be your first select added to the page Select = $("body").

Remove(Select); var Options = Select. Find("option"); Per you comment you might want to use the $('select. SelectClass').

ReplaceWith(Select); This will allow you to stick with a parent element.

1: I deleted my answer since I ended up modifying mine to suit your suggestion. – CAbbott Apr 13 '10 at 16:30 :) I was about to comment on the difference between .html() and .append() and the questions disappeared... – aepheus Apr 13 '10 at 16:32 @Mahesh Velaga append is a += html is just =. I.e.

Html will overwrite existing content. – aepheus Apr 13 '10 at 16:32 I meant to ask the other angle of it, I mean will .html() also create the dom for it automatically? If I write .

Html("some html"), will it create DOM elements in the "some html" part? Thanks – Mahesh Velaga Apr 13 '10 at 16:35 for that matter will .append() or .html() create the dom elements of the passed in strings (if the string has some html tags in it)? – Mahesh Velaga Apr 13 '10 at 16:38.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions