我正在将“ Checkfront”集成到我的网站中。我希望用户能够选择日期(当前有效),然后从下拉菜单中选择要预订的项目。然后,他们单击“预订”以继续预订。因此,我需要从他们提供的“液滴”中手动对其进行编码:
<script type="text/javascript" src="//website.checkfront.com/lib/interface--0.js"></script>
<!-- CHECKFRONT BOOKING PLUGIN v25-->
<div id="CHECKFRONT_WIDGET_01"><p id="CHECKFRONT_LOADER" style="background: url('//website.checkfront.com/images/loader.gif') left center no-repeat; padding: 5px 5px 5px 20px">Searching Availability...</p></div>
<script>
new DROPLET.Widget ({
host: 'website.checkfront.com',
target: 'CHECKFRONT_WIDGET_01',
item_id: '229,238',
category_id: '2',
options: 'hidesearch',
provider: 'droplet'
}).render();
</script>
<noscript><a href="https://website.checkfront.com/reserve/" style="font-size: 16px">Continue to Secure Booking System »</a></noscript>
item_id是下拉菜单中我需要的2个项目的ID,但是“立即预订”按钮显然会触发该ID以继续进行预订。有人知道我会怎么做这样的事情吗?甚至有可能吗?