[jQuery] Re: Remove css attribute from the DOM element

2009-12-06 Thread Joshua Partogi
On Dec 7, 12:36 pm, "evanbu...@gmail.com" wrote: > I like to use the addClass method rather than embed CSS in my js > code. I find it easier to maintain. > > $('td').addClass('myCSSClass'); > > $('td').removeClass('myCSSClass'); Hi Evan, I'd prefer that approach too. But the problem is this css

[jQuery] Remove css attribute from the DOM element

2009-12-06 Thread Joshua Partogi
Hi all, What is the cleanest approach to remove a css attribute from the DOM element? Currently I have a DOM element which has css background color as such: This is currently what I do: $('td').css('background-color','').append(replacement); But I'm not sure that is the good approach. Or is it

[jQuery] Re: Set event handler attributes does not work on IE7

2009-04-20 Thread Joshua Partogi
Thanks James! I still wonder why it doesn't work on IE7 though. Cheers, On Apr 21, 11:55 am, James wrote: > You should do: > > $(".input").change(onInputChange); > or: > $(".input").bind("change", onInputChange); > > On Apr 20, 3:49 pm,

[jQuery] Set event handler attributes does not work on IE7

2009-04-20 Thread Joshua Partogi
Dear all, I'm trying to set event handler attributes when the DOM is ready, but it doesn't work on IE7. The snippets are as such: var onInputChange = function (){ alert("Hey I'm changed"); } $(function() { $(".input").attr("onchange", "onInpu

[jQuery] Does jQuery ajax event listener listens to ajax request sent by other frameworks?

2009-03-09 Thread Joshua Partogi
Hi all, Let's say I sent an ajax request with mootools, does jquery global ajax event listener listens to it too? Or does it only listens to ajax request that is sent by jQuery? Because I have a page that has ajax request by other framework and it seems that jQuery is listening to it too. But per