document.form.控件.value 

解决方案 »

  1.   

    如果有两个BUTTON 那怎么选中要的那个啊
      

  2.   

    <input type="submit" value="dfdf" onClick="cc()">在写一个,用两个不就行了吗
      

  3.   

    <netui:form action="enterProductOrder" style="background-color:#ffffff;">
    <table width="600" class="wiztable">
            <tr>
                <td class="wizhead" colspan=4>
                    <b>Order Entry Wizard:</b>
                </td>
            </tr>
            <tr>
                <td class="wizbody" colspan=4>Please enter in the quantity of each product you would like to order: 
                </td>
            </tr>
            <data:repeater dataSource="{actionForm.productOrders}" >
                <data:repeaterHeader>
                <tr class="wizbody">
                    <td class="wizbody">
                        <b>Product ID</b>
                    </td>
                    <td class="wizbody">
                        <b>Description</b>
                    </td>
                    <td class="wizbody">
                        <b>List Price</b>
                    </td>
                    <td class="wizbody">
                        <b>Quantity</b>
                    </td>
                </tr>
            </data:repeaterHeader>
                <data:repeaterItem>
                <tr class="wizbody">
                    <td  class="wizbody">
                                <netui:label value="{container.item.product.productID}"></netui:label>
                                 <hr>
                                </td>
                    <td  class="wizbody">
                                <netui:label value="{container.item.product.description}"></netui:label>
                                 <hr>
                                </td>
                    <td  class="wizbody">
                                ¥
                                <netui:label value="{container.item.product.listPrice}"></netui:label>
                                 <hr>
                                </td>
                    <td  class="wizbody">
                                <netui:textBox dataSource="{container.item.quantityOrdered}" defaultValue="0" size="5"></netui:textBox>
                                 <hr>
                                </td>
                </tr>
            </data:repeaterItem>
            </data:repeater>
           
            <tr>
                <td class="wizbodyright" colspan=4>
                    <hr>
                        <netui:textBox dataSource="{request.price}" defaultValue="fgfghgf" tagId="23"/>
                        
                        <netui:select dataSource="{actionForm.productOrders}"></netui:select>
                        
                        
                         &nbsp;&nbsp; 
                    <netui:button   value="提交定单" />
                <br></td>
            </tr>    </table>
    </netui:form>        
    这是form中的内容 我要得到 textBox 中的内容 怎么取得 用javascript 取 
    哪位高手帮我写一下
      

  4.   

    建议用button应为用submit时可能会出现这样的问题,
    即使做了判断,alert确认后也要继续提交,也就是说return没发生作用。
    用button的话在js中用document.表单名.submit.submit();方法提交。