JSFiddle - React, Tailwind, and code Playground

by spinal007

HTML

<textarea id="xml" style="width:400px; height:200px;">
    <Request>
          <Param id="reqp08"/>
</Request>
</textarea>
<button id="test">Test</button>

JavaScript

$(function(){

    $('#test').on('click',function(){
        alert( $($('#xml').val()).find('Param').length );
    })
    
});