unable to get property 'length' of undefined or null reference jquery in IE?

unable to get property 'length' of undefined or null reference jquery in IE?

AtharAliKhanAtharAliKhan Posts: 2Questions: 1Answers: 0

Hi
I am getting error in the below code only in IE browser but not in chrome.
How to fix this?

// If it is empty to start with, apply the empty message
if (this.html().length == 0 && opts.emptyMessage) { // Here am getting error
this.html(opts.emptyMessage);
this.attr(EMPTY_ATTR, 'empty');
} else {
this.removeAttr(EMPTY_ATTR);

Answers

  • allanallan Posts: 61,892Questions: 1Answers: 10,144 Site admin

    Could you link to the page so I can take a look please?

    Thanks,
    Allan

  • AtharAliKhanAtharAliKhan Posts: 2Questions: 1Answers: 0

    Hi Allan,
    Thanks for your reply. I am using below js files to edit the datatable.

    https://github.com/victorjonsson/jquery-editable/

  • allanallan Posts: 61,892Questions: 1Answers: 10,144 Site admin

    Thanks - I'm afraid I can't support third party software though, due to time constrains. I barely have enough time to support my own, nevermind others as well :-)

    Allan

This discussion has been closed.