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 i开发者_如何学运维t 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.
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.
精彩评论