.click関数が機能する際に問題が発生します
jQueryダイアログ内のタグ。
jQueryダイアログ内に以下のようなaapタグがあります。
<p class="userColor" id="CMP|8|25691/XX|25691/59|59" style="text-decoration:underline;cursor:pointer;">59 - GRAPE</p>
div
<div id="colorPickerWindow" style="width: auto; min-height: 89px; max-height: none; height: auto;" class="ui-dialog-content ui-widget-content">
<p class="userColor" id="CMP|8|25691/XX|25691/20|20" style="text-decoration:underline;cursor:pointer;">20 - RED</p>
</div>
.clickと.onを試し、セレクターを使用して両方を試しましたが、Pタグに対してクリックアクションを実行できません。
jQuery
$(".userColor").on({
click:function(){}
});
jQueryダイアログ内でクリックイベントを発生させるための正しいjQueryは何ですか?