sudeep
sudeep

Reputation: 170

Conflict in jQuery functions

The following jQuery function works fine:

<script>
    $(document).ready(function(){
        $("#mytags").tagit({
            availableTags: ["c++", "java"],
        });
    });
    </script>

If I try to combine another function in the above code, only first one works, but the second does not work. For example, in the code below, the second function doesn't work, but it was working fine above. If i place it first, then it works fine but the other doesn't.

    $("#fileUpload").fileUpload({
        'uploader': 'uploadify/uploader.swf',
        'cancelImg': 'uploadify/cancel.png',
        'script': 'uploadify/upload.php'

            });

$("#mytags").tagit({
            availableTags: ["c++", "java"]          
        });

How can I fix this? Thanks.

Upvotes: 0

Views: 131

Answers (1)

H&#229;vard
H&#229;vard

Reputation: 10080

Is this actual code? It doesn't work because .abc isn't a real function, so it errors and doesn't ever reach the second function.

Upvotes: 1

Related Questions