jquery has _______ method for inserting element before other element.

Options
- One
- Two
- Three
- Four


CORRECT ANSWER : Two

Discussion Board
Before and InsertBefore

Prepend or append not included and not a true choice, because the insert inside element not before; Therefore the two methods are .before and .insertBefore

The .before() and .insertBefore() methods perform the same task. The major difference is in the syntax-specifically, in the placement of the content and target. With .before(), the selector expression preceding the method is the container before which the content is inserted. With .insertBefore(), on the other hand, the content precedes the method, either as a selector expression or as markup created on the fly, and it is inserted before the target container.

Bashar 09-20-2015 03:10 AM

discussion

Hi KUMAR , Now i don't know your question answer but i want to tell you that append is not used to inserting element before other element . may be you are thinking about prepend();

anurag 10-5-2014 03:56 AM

Inserting Methods

Hi,Sir

For inserting the element we have append() Method

can please explain the other method.........

waiting for your responce Sir



KUMAR 08-24-2014 04:14 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement