Advanced JQuery Form Errors (IE7)

I recently created an advanced form with elements using jquery $ () functions. hide and $ (). show. It works fine in safari and ff, but for some reason in $ 7 the action is $ (). Hide in jquery is not working properly. Any suggestions?

http://www.tasteofinkstudios.com/webdesign.html

+3
source share
2 answers

Your jQuery specs break in IE because IE does not allow commas in object / array literals (for which I hate it more than I can express, as if there were more reasons). It:

    $('a.whats-this-main, a.package-details').tooltip({

        fade: 250,
        top: -400, 

    });

should be as follows:

    $('a.whats-this-main, a.package-details').tooltip({

        fade: 250,
        top: -400

    });

If you are going to debug JS in IE, you need to disable it Tools -> Internet Options : Advanced : Disable script debugging (Internet Explorer).

+3
source

, , , , - JavaScript, , . JSLint, JavaScript. .

+1

Source: https://habr.com/ru/post/1712027/


All Articles