Strange bug with last versione of Jquery!
Hi, i've this html code:
- <span id="disponibilita">Disponibilità
- <input type="checkbox" id="illimitata" name="illimitata"/>
- <span id="scrittaIllimi">illimitata</span>
- <span id="oppure"> oppure <input type="number" size="2" id="numeroDisponibili"/> pezzi </span>
- </span>
and this JS script
- $('#illimitata').change(function()
- {
- alert('clicked') //<---This is always showed
- if ($('#illimitata').attr('checked'))
- {$('#oppure').hide()} //<---But this don't works with latest version of JQ
- else
- {$('#oppure').show()}
- })
But i'm unable to switch from hide to show using the last version of jquery
- <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
While with this works
- <script src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
Why did happen this?