我有一个CFINPUT
标签CFFORM
。我想动态设置范围而不发布页面。我在整个页面中有几个 AJAX 调用来动态加载表单字段:
<cfselect id="this" name="this" bind="cfc:Data.getThis()" bindonload="true" />
<cfselect id="that" name="that" bind="cfc:Data.getThat({p1})" />
<cfselect id="theOther" name="theOther" bind="cfc:Data.getTheOther({p1}, {p2})" />
<cfdiv
id="maxQty"
bind="cfc:Data.getMaxQty({itemId})" />
<cfinput
type="text"
id="qty"
name="qty" />
<cfdiv
id="itemId"
bind="cfc:Data.getItemId({this}, {that}, {theOther})" />
在上面CFFORM
,我基本上想将范围的 minValue 设置为“1”,将范围的 maxValue 设置为cfc:Data.getMaxQty({itemId})
.
这可能吗?我该怎么做?