Bug Tracker

Ticket #1211 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

$('td').bind("click", function(){}); doesn't work in internet explorer 7

Reported by: tallphil Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.1.3 Component: event
Version: 1.1.2 Keywords: table, bind, click, onclick
Cc: Needs: Review

Description

I'm trying to make a clickable table to save preferences using the bind("click" function with a table.

Link: http://www.tallphil.co.uk/feeds/

Snippet:

$('td').bind("click", function(){
	if($(this).css('background-color') == 'rgb(237, 252, 235)'){
		$(this).css('background-color','rgb(245, 207, 207)');
		selected[$(this).attr('id')] = false;
	}
});

The code works perfectly in firefox, but has no effect in internet explorer 7. I presume that it's a problem with using the onclick handler with a td element, any way to get around this?

Cheers

Phil

Attachments

Change History

Changed 1 year ago by brandon

  • status changed from new to closed
  • resolution set to fixed

This is working for me with jQuery 1.1.3a/latest SVN

Note: See TracTickets for help on using tickets.