如何从类中获取xyztype并基于attr xyztype如何隐藏类?
我用过
$(textforhtml).find('input[fictype=FICPicklist]').parent().addClass("hide");
console.log($(textforhtml));
console.log(textforhtml);
但是没有添加addclass(“hide”)
代码:
<div class="large-6 columns">
<input type="hidden" id="hdnMandFd10" value="false">
<div class="row collapse">
<div class="small-5 columns">
<label xyzlabel="" class="inline CatalogueFont" id="dragField10" value="xyzUW.clientcode.label" onclick="showFieldProperties('10','PARTY',1)">xyzUW.clientcode.label</label>
</div>
<div class="small-2 columns"><input id="valuefd10" value="" xyztype="xyzPicklist" pickdetails="PARTY:" onclick="showFieldProperties('10','PARTY',2)" class="round ui-autocomplete-input" type="text" maxlength="8" autocomplete="off" name="policy[IUWP1_CLI_CD]" style="padding-right:0px;"></div><div class="small-5 columns"><input id="valueDescFd10" style="padding-left:0px;" xyztype="xyzPicklist" pickdetails="PARTY:" pickdescdetails="" class="round ui-autocomplete-input" type="text" value="" placeholder="Description" autocomplete="off" name="policy[IUWP1_CLI_CD_DESC]"></div><div class="small-1 pull-1 radius columns"></div>
</div>
</div>
答案 0 :(得分:0)