javascript Programming Glossary: event.target.id
How to remove a property from an object? http://stackoverflow.com/questions/4178123/how-to-remove-a-property-from-an-object checkboxes var selectedMap if event.target true var key event.target.id var val event.target.name selectedMap key val and I want to.. unselected else if event.target false selectedMap.remove event.target.id when I run this it gives me error in Firebug selectedMap.remove.. improve this question Using delete delete selectedMap event.target.id You're setting the value incorrectly though. Here's the correct..
Getting the ID of the element that fired an event using jQuery http://stackoverflow.com/questions/48239/getting-the-id-of-the-element-that-fired-an-event-using-jquery document .ready function a .click function event alert event.target.id Note also that 'this' will also work but that it is not a jQuery..
|