Side navigation
#9443 closed bug (invalid)
Opened May 27, 2011 04:40PM UTC
Closed May 27, 2011 04:59PM UTC
error thrown
Reported by: | cristian.jujea@gmail.com | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | core | Version: | 1.6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi,
I have this function in a separate javascript file:
$(document).ready(function(){
$('#cont_voz input[type=\\'radio\\']').click(function() {
jQuery('#cont_voz input[type=\\'radio\\']').each().attr("checked", false);
});
});
When I click on one of the radio buttons in the browser window, Firebug reports this error:
callback is undefined
if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) {
jquery.js (linha 641)
Attachments (0)
Change History (1)
Changed May 27, 2011 04:59PM UTC by comment:1
component: | unfiled → core |
---|---|
priority: | undecided → low |
resolution: | → invalid |
status: | new → closed |
Incorrect usage of each. It is not needed for what you're trying to accomplish. See http://api.jquery.com/each and you can find support on the #jquery irc support channel and on the forums.