Zamblek
Zamblek

Reputation: 809

prevent radio button to be checked when clicked

I need to stop prevent default behavior of radio button to check if it checked before I click it or not, I'm using .live('click', function (){}) because the HTML added to DOM with AJAX

Upvotes: 2

Views: 7139

Answers (2)

ShankarSangoli
ShankarSangoli

Reputation: 69915

Just return false

.live('click', function (){
        return false;
    }) 

Upvotes: 2

SLaks
SLaks

Reputation: 887469

Just return false; from the handler.

Upvotes: 6

Related Questions