Reputation: 641
Can someone tell me what is wrong with this javascript ?
$("#parent-project").attr("data-id").click(function(){
//some code...
}
The console output is:
Cannot read property 'click' of undefined
Upvotes: 0
Views: 33