onclick - ASP Classic - submit form when checkbox is clicked - Stack Overflow

Using ASP Classic, VBScript...I have a side nav bar that displays a list of fly rod makers from the d

Using ASP Classic, VBScript... I have a side nav bar that displays a list of fly rod makers from the database as checkboxes. I have a form that submits the page when a user checks a few Makers, then clicks on the Maker button. This works great, but I'd like to upgrade it to remove the Maker button and submit the form each time a user checks a checkbox.

            <% for i = LBound(subIDArray) to UBound(subIDArray)%>
                <br>
                "  /><%=subCATArray(i)%>
            <%next %>

Here is my code:

    <div class="sidenav">
        <form method = "post" >
            <input type = "submit" value = "Makers" style="height:50px; width:75px font-size:.7rem;" />
            <input type = "submit" value = "Select All" style="height:50px; width:75px font-size:.87rem;" />
                <% for i = LBound(subIDArray) to UBound(subIDArray)%>
                    <br>
                    <input type="checkbox" name="maker" value="<%=subIDArray(i)%>"  /><%=subCATArray(i)%>
                <%next %>
       
                <%
                    menuarray = ""
                    menuarray = Request.Form("maker") ' Name of the Control
                %>
            
                <br> 
        </form>
    </div>

I have tried adding some javascript and jquery code that others on this site suggest, but nothing seems to work.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742392799a4435343.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信