JSFiddle - React, Tailwind, and code Playground

by Ritwika Das

HTML

<div id="dialogButtons" class="opportunityEditorPopup">     
    <span id="closed" class="label checkOption" style="display: none;"><input type="checkbox">Mark this as closed</span>
    <span class="testButtons" style="display: inline;">
            <button id="closeOpportunityButton" class="jqButton imaged ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" title="Close this opportunity" role="button"><span class="ui-button-text">Close</span></button>
            <button id="newOrderButton" class="jqButton imaged ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" title="Raise New Quote" role="button"><span class="ui-button-text">New Quote</span></button>
    </span>
</div>

JavaScript

$('.testButtons #closeOpportunityButton').click(function(){
    console.log("test")
});