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 7563441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:40:03+00:00 2026-05-30T13:40:03+00:00

I have checkbox insde a link. In all browsers except Chrome, when clicking on

  • 0

I have checkbox insde a link. In all browsers except Chrome, when clicking on the checkbox you follow the link (instead of just having the checkbox become selected).

How do I avoid this behaviour?

Demo (hover over one of the product images to see the checkbox):

  • http://livedemo07571.prestatrend.com/category.php?id_category=9

And here’s the code in question:

<a href="http://livedemo07571.prestatrend.com/product.php?id_product=25" class="product_img_link">
    <img src="http://livedemo07571.prestatrend.com/img/p/25-65-large.jpg" height="469" width="469" alt="Crew Neck Jumper" />

    <span class="new">New</span>

    <div class="right_block large">
        <h3 class="large">Crew Neck Jumper</h3>

        <span class="product_arrow"></span>
        <p class="availability_container"><span class="availability">Available</span></p>

        <span class="slash">&#47;</span>
        <p class="price_container"><span class="price" style="display: inline;">$2,390.00</span></p>

        <p class="compare large"><input type="checkbox" class="comparator" id="comparator_item_25" value="comparator_item_25" /> <label for="comparator_item_25">Select to compare</label></p>
    </div>
</a>
  • 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-30T13:40:04+00:00Added an answer on May 30, 2026 at 1:40 pm

    This isn’t valid HTML (see report). The way to avoid this is, quite simply, to include only text or images inside an anchor tag, and move the checkbox outside. You could use some jQuery to add a click event to the box which would navigate to the next page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It seems hard to just have a link working inside a checkbox label, overriding
I have links inside an article element. While clicking on the element a checkbox
hello everybody i have a listbox within which is a datatemplate.Inside it is checkbox,textbox,label...Wat
I have checkBox and Spinner . If the checkbox is checked, then spinner should
i have checkbox list printed in one column, but i need it to print
I have a checkbox with an id of activelist I tried the following but
I have a checkbox in the Android layout file. When the checkbox is clicked
I have a checkbox that I do not want the user to have direct
I have a CheckBox in my application that is using the TriState mode. The
I have added checkbox selection model to grid panel. It works fine in IE8

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.