<span>
タグを入力するクレジットカードフィールドがあります。
<span>****-****-****-1111 (Expires 12/2012)</span>
日付を抽出して、過去のものかどうかを確認する必要があります。
現時点では、以下のjQueryがありますが、日付だけを抽出するためにsplit()の時点で立ち往生しています。
var $selectedDate = $('.prev-card .chzn-container .chzn-single span').text().split();
var $now = new Date();
if ($selectedDate < $now) {
alert('past')
}
else{
alert('future')
}
私はそれがすべてをカバーしていると思いますが、より多くの情報を気軽に尋ねてください