Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #10607
Closed
Open
Issue created Sep 12, 2013 by Administrator@rootContributor

When clicking a checked Radio button it raises a change event

Created by: hokkos

Hi, it appears that when we click a checked radio button it raises a change event when it shouldn't, you can test here : http://jsfiddle.net/hQQPH/2/ here is the html :

<div class="btn-group btn-group-lg" data-toggle="buttons">
    <label class="btn btn-primary" for="test2_t" >
        <input type="radio" name="test2" id="test2_t" value="true"/> 3
    </label>
    <label class="btn btn-primary" for="test2_f" >
        <input type="radio" name="test2" id="test2_f" value="false"/> 4
    </label>
</div>

and the javascript :

$('input[type=radio]').change( function() {
   alert("test");   
});

thanks.

Assignee
Assign to
Time tracking