following is my jQuery function, please correct if possible and let me know where am i mistaking.
$("#id").click(function() {
start : appendLayout(this.id) // invoking another function to do and this part is working.
stop : (function(){
if(true){ alert("please create project"); }
} ) // not working, getting error in firbug console if i change anything
});
What are you trying to do? You’re creating some properties in a function, which is not an object.
This is wrong:
This is the right way of creating objects:
Simply call functions and write simple JavaScript statements inside your function: