7

I have the following code

http://www.jsfiddle.net/uZc8w/

what i'm simply wondering is how would i with jquery/javascript remove that attr so it wouldnt work anymore

1
  • use this link may be its hepful for you. Commented Apr 8, 2013 at 7:34

1 Answer 1

13

See removeAttr.

Updated demo

Sign up to request clarification or add additional context in comments.

3 Comments

how come unbind or the solution i posted there doesn't work but removeAttr does ?
because jquery did not attach the event so it cannot unbind it.
@Breezer: and instead of bin/unbind use on/off. For With jQuery 1.7 onward the event API has been updated, .bind()/.unbind() are still available for backwards compatibility, but the preferred method is using the on()/off() functions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.