Home › Forums › JavaScript › how to get the elements in event? › Reply To: how to get the elements in event?
May 29, 2014 at 7:00 pm
#171382
Participant
Aha…I think the code is easy to confused.
here’s what I want:
var checkbox = $(‘input[name=a]‘);
checkbox.on(‘change’,function(e){
// I want to get the checkbox again.
// but can I get that without var checkbox = ….?
// $(this) means the elements which onchange, not the collect.
});
XD