.wrap() vs wrapAll()

Simply wrap HTML around an element. The wrapAll() method will wrap all the elements matched into another element whereas the .wrap() method which wraps the matched elements individually. The example wraps an img tag with anchor.

$j("img#tooltip").wrap('<a href="#" id="show_tooltip"/>');

Adding a row in the middle of the table

If you want to add an additional row in between the table rows than .after() or .insertAfter() is way to do.

var newrow = $j('<tr><td colspan=2></td></tr>');



The only difference between the two is that .insertAfter() returns all inserted elements whereas .after() has no return value. The detailed explanation can be read from this link.

Tooltip is a useful interface paradigm. Its use can explore the action without invoking. tooltip can be set using jquery or with css. The css example can be found here.

With jquery it can be done with .tooltip()


Leave a Reply

Your email address will not be published. Required fields are marked *