JSFiddle - React, Tailwind, and code Playground

by Erik Bartlow

HTML

<div class='button'>
  <div class='something'>

  </div>
  <div class='else' value='google'>

  </div>
</div>
<span id='provider'>No Provider</span>
<button id='btnTest'>
  Click to See Provider
</button>

JavaScript

$('#btnTest').on('click', function(e) {
		  var provider = $('.button[div:nth-child(2)]').val();
		  $('#provider').text('The provider is ' + provider);
		});