I have a simple jQuery script in a WordPress plugin that is using a jQuery wrapper like this:
$(document).ready(function(){ // jQuery code is in here }
You come across this issue when your function name and one of the id names in the file are same. just make sure all your id names in the file are unique.