Question: I am working with JavaScript and JQuery, there is a reference for click event from jquery.js,

Here I am trying to override the click event, its not happened.
Even though overridden still it is fairing old one not new one.
Is there any way to load event based on priority wise?

Answer: 
Maybe you need to "unbind" click event which defined as inline attribute. In this case you can use $.removeAttr() method.

```
$(SELECTOR).removeAttr('onclick');

```
The .click() adds a new handler every time it's called, not overwrites an existing one.Execution will be in the order in which they were bind.

You can use $(id).unbind() to clear handlers on that element before adding the new one.