Re: [jQuery] Changing colspan with jQuery

2009-12-17 Thread Charlie Griefer
I see where you're changing background colors, but where are you trying to change colspans? untested, but $('myTDelement').attr('colspan', x); ... where 'x' is the numeric value, should work. also, it's criminal to use document.getElementById() within jQuery. $('#element') is so much more

[jQuery] Changing colspan with jQuery

2009-12-17 Thread davec
I am trying to change the colspan attribute on some table cells when the user clicks on a button but it is not affecting the table. Perhaps someone can tell me what I am doing wrong. Here is my jQuery code: < $(document).ready(function() { $('#plusSign').click(function(){ $('.ba_toggle').

[jQuery] Changing colspan with jQuery

2009-12-17 Thread davec
I am trying to change the colspan attribute on some table cells when the user clicks on a button but it is not affecting the table. Perhaps someone can tell me what I am doing wrong. Here is my jQuery code: < $(document).ready(function() { $('#plusSign').click(function(){ $('.ba_toggle').