sebastian
Posts: 1
Joined: Tue Oct 21, 2014 9:46 pm

Can't get checkbox id when using event on click run javascript alert(this.id);

So when I use alert(this.id); the checkbox is the only component I can't get an id from I just get a blank value.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Can't get checkbox id when using event on click run javascript alert(this.id);

Hello Sebastian,

Please use: prealert($(this).find("input").attr("id"));/pre instead of prealert(this.id);/pre

Return to “Issues”