「リンク」をクリックして表示するダイアログの例です。 前回のボタンのものがリンクに変わっただけで簡単です。 ボタンの時と同じように「id属性」を付与しているだけです。 これで同じ方法でconfirmを使ったダイアログを表示することができます。
「ボタン」をクリックして表示するダイアログの例です。 単純に「button要素」を作って配置しているだけです。 フォーム要素の「inputタグ」を代用してもOKです。 あとは、buttonタグの「id属性」を使ってボタン要素を取得し、イベント処理を実装するだけ ...
Dialog in Google Chrome created using alert("Hello World"); in JavaScript, clearly indicating that it is a webpage dialog and not a Google Chrome dialog using "This ...
If a field changes visibility (i.e. becomes hidden or visible) after field layout conditions are evaluated, navigating away from or reloading the edit page will make Craft throw up the "Reload site?