Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ユーザーが jQuery の日付ピッカーで土曜日と日曜日のみを選択できるようにしたいと思います。datepicker スクリプトに何を追加すればよいですか?
$(function() { $('#txtDate1').datepicker({ beforeShowDay: function(dt) { return [dt.getDay() == 0 || dt.getDay() == 6, ""]; } }); });
この正規表現を使用して、このようなリンクを見つけ、リンクの開始タグと終了タグの間のコンテンツのみに置き換えようとしています。
正規表現:
/<a class="tag_link"[^>]*>([^<]*)<\/a>/mg
サンプルコードで正規表現をテストしましたが、