Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4571004
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:26:32+00:00 2026-05-21T19:26:32+00:00

I have these checkboxes : <input name=linkStyle type=checkbox name=style[] value=Style1 /> <input name=linkStyle type=checkbox

  • 0

I have these checkboxes :

<input name="linkStyle" type="checkbox" name="style[]" value="Style1" />
<input name="linkStyle" type="checkbox" name="style[]" value="Style2" />
<input name="linkStyle" type="checkbox" name="style[]" value="Style3" />

and this jQuery function :

<script type="text/javascript">
    $(document).ready(function() {
        $('input[name=linkStyle]').click(function(e) {
            e.preventDefault();
            $('#browseForm').submit(); 
        });                 
    });
</script>

but in fact it doesnt send to the server the style[] array trought the form. Why? And how can I fix this trouble? Tried also removing e.preventDefault(); but nothing change…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T19:26:33+00:00Added an answer on May 21, 2026 at 7:26 pm

    Try —

    HTML

    <input class="linkStyle" type="checkbox" name="style[]" value="Style1" />
    <input class="linkStyle" type="checkbox" name="style[]" value="Style2" />
    <input class="linkStyle" type="checkbox" name="style[]" value="Style3" />
    

    jQuery

    <script type="text/javascript">
        $(document).ready(function() {
            $('.linkStyle').click(function(e) {
                e.preventDefault();
                $('#browseForm').submit(); 
            });
        });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following structure for check-boxes <input type=checkbox name=reg_field['first_name'] value=1 /> First Name<br />
I have the following code structure: <input type=checkbox name=some_name_1 value=some_val /> <input type=text name=input_name_1
Let's assume I have a form with these fields (HTML) <input type=text name=user[name] value=name/>
I have this HTML: <li> <input type=radio class=checkbox name=myName id=Id001/> One <img class=resetRadio src=star.png/>
I have some code <input type=checkbox id=chk value=value /> <label for=chk>Value </label> <br/> <input
If I have <input type=checkbox name=firstGroupOne> <input type=checkbox name=secondGroupOne> <input type=checkbox name=thirdGroupOne> How can
I have following HTML with two elements having the same name <input type=hidden name=
I'm currently dynamically building an asp:table which contains checkboxes these checkboxes have a CheckChanged
I have these tables: customer -------- customer_id int name varchar(255) order ----- order_id int
I have these lines in my html head section <script type=text/javascript src=../behaviour/location.js></script> <script type=text/javascript

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.