Wednesday, 22 February 2017

Fix error - Uncaught ReferenceError: auto is not defined

watch this example on youtube

To fix it replace
    <script type="text/javascript">
        $(document).ready(function () {
            $("btnSearch").css({
                top: auto, left: auto,
                "background-color": "yellow"
            }).add('body');

with 

    <script type="text/javascript">
        $(document).ready(function () {
            $("btnSearch").css({
                top: 'auto', left: 'auto',
                "background-color": "yellow"
            }).add('body');

No comments:

Post a Comment