Home > Web Front-end > JS Tutorial > body text

Tinymce jQuery.Validation generated BUG_jquery

WBOY
Release: 2016-05-16 18:31:13
Original
1193 people have browsed it

The error location is around line 92 of jquery.metadata.js:

Copy code The code is as follows:

else if ( elem.getAttribute != undefined ) { // This line reports an error
var attr = elem.getAttribute( settings.name );
if ( attr ) data = attr;
}

The strange thing is that elem is a textarea object, but there is no getAttribute method
Solution: Try to modify it to the following code, and it succeeds
Copy code The code is as follows:
else {
data = $(elem).attr(settings.name);
}

There is a problem with IE6 Tinymce3.3 jQuery.validation jQuery.metadata
There is no problem with Firefox, and there is no problem with the Tinymce editor simple theme.
I have wasted 1 hour and have no time to study. .
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template