How does jquery get the contents of the template tag?

can the html object of the entire template be obtained only through the native js"s document.getElementById ("box"). Content? Or does jquery have built-in methods? Baidu is less than asking for advice

May.27,2021

try this

$('-sharpbox').html()

<textarea name="" id="aaa" cols="30" rows="10">2222222222222</textarea>
<script>
    console.log(aaa.innerHTML);
    //jq
    $('-sharpaaa').html();
</script>
Menu