我正在研究HP自治交织的Teamsite DCT,我正在尝试将jQuery Datepicker添加到"selectDate"文本元素中.
基本上,此文本元素是属性min = 1的复制容器的一部分.因此,在表单加载时,复制器容器的第一个实例具有与选择日期文本项相关联的日期选择器.但是当我添加新的replicant容器时,新实例的select Date文本元素没有填充datepicker.
我的DCT代码是 这里显示的一部分
<script language="javascript" location="webserver" type="text/javascript" src="/iw/macysdotcom/formapi/jquery/js/jquery-ui-1.9.2.custom.min.js" />
<script language="javascript" location="webserver" src="/iw/macysdotcom/formapi/library.js"/>
<script language="javascript" location="template-type" src="shy.js"/>
<root-container location="Root" name="Root">
<container name='sequenceContainer' min='1' max='25' default='0'>
<container name='rowContainer' min='1' max='25' default='0'><label><img src='/iw-cc/teamsite/images/bullets/blue_bullet.png'/> Row Container</label>
<item name="startDate" pathid="startDate" required="t" rowcontinue="t">
<label>Start Date</label>
<text required="f" size="30" maxlength="100">
</text>
</item>
<item name="endDate" pathid="endDate" required="t">
<label>End Date</label>
<text required="f" size="30" maxlength="100">
</text>
</item>
</container>
</container>
</root-container>
Run Code Online (Sandbox Code Playgroud)
JS代码如下
/******************************************************************************
// Setting up some variables. From line Number 15 to 29. …Run Code Online (Sandbox Code Playgroud)