What is the following structure called:
$('', { })
I see it often, for instance here from appending options to select elements:
$("#items").append($('<option>', { value : "mouthForWar" , text : "Pantera" }));
In the more general sense, is there any place where the different jQuery structures, formats, and syntax is concised on a single page? If one does not know the name of the syntax he is looking for, then there is no way to google for it!
Thanks.
actually creates this:
It’s a convenient shortform. The
jQueryfunction (mostly called through its alias$) is very versatile. Look it up: http://api.jquery.com/jQuery/#jQuery2It’s called
jQuery( html, props )