,

Jquery error thisi.style is undefined

25 November 2009

jQuery error: this[i].style is undefined

Possible causes I've found so far:

  • You are posting data to a page that is being redirected, or non-existent.
  • Data you are giving to a .show() method isn't being recognized (that's why you see the 'undefined' bit)
    • This can happen because:
      • you either have 2 elements with that match the selector string (elements with the same id for example)
      • or the element doesn't exist, which could be fault of your templating system substituting the element on the fly. Use firebug for that.