标签:
function add(){
$("select option:selected").each(function(index){
var name = $(this).text();
console.log(name);
})
$("select").each(function(index){
var namekey = $(this).val();
console.log(namekey);
})
$("input[name=‘nodeForm.name‘]").each(function(index){
var name = $(this).val();
console.log(name);
})
$("textarea[name=‘nodeForm.nodeDes‘]").each(function(index){
var nodeDesc = $(this).val();
console.log(nodeDesc);
})
$("textarea[name=‘nodeForm.scanField‘]").each(function(index){
var scanField = $(this).val();
console.log(scanField);
})
}
<div class="global_module news">
<h3><s:property value="%{#node.ipStr}" /></h3>
<div class="scrollNews">
<div style="height:40px;">
<div style="float:left">
<label for="name" class="spanFont">*节点名称:</label>
<s:textfield name="nodeForm.name" class="name" id="name" value="%{#node.name}" cssStyle="width:200px;"/>
</div>
<div style="float:right">
<label for="nodType" class="spanFont">*节点类型:</label>
<vwfextra:select name="nodeForm.nodType" id="nodType" codeType="nodType" disabled="true" value="%{#node.nodType}" cssStyle="width:200px;margin-right:8px;"/>
</div>
</div>
<div style="height:60px;">
<div style="float:left">
<lablel class="spanFont" for="nodeDes"> 节点描述:</label>
<s:textarea name="nodeForm.nodeDes" id="nodeDes" value="%{#node.nodeDes}" cssStyle="width:200px;height:50px;overflow:auto;" maxlength="256"></s:textarea>
</div>
<div style="float:right">
<lablel class="spanFont" for="scanField">*安全域:</label>
<s:textarea name="nodeForm.scanField" id="scanField" value="%{#node.scanField}" cssStyle="width:200px;height:50px;overflow:auto;margin-right:8px;" maxlength="256"></s:textarea>
</div>
</div>
</div >
<p class="module_up_down"><img src="<%=rootPath %>/images/nodeManage/down.gif" /></p>
<p class="module_del"><img src="<%=rootPath %>/images/nodeManage/down.gif" /></p>
</div>
标签:
原文地址:http://www.cnblogs.com/sj521/p/5428188.html