jquery append behavior documentation
I'm modifying a Google Apps Script Web App within which I use jQuery, and it generally works fine.
Anyway, the code includes this structure, which I continue to use, and works particularly well:
$('#searchId').append(
$('<h4/>')
.attr("id", idVar)
.addClass("whatever I want")
.text(textVar)
I can't figure out what this approach is called, in order to learn it better: when I look up append documentation, I don't find examples of this (specifically, I'm talking about the $('<tag/>') part, where it creates open/closing tag elements around the subsequent methods. I've modified this a bit, and though it still works in Chrome, I might have messed it up in some way that won't work elsewhere).
I'm still new to jQuery, javascript, and web programming in general, so I could be missing something obvious, or describing this poorly. Thanks for any help!