I have code like
var i = $(this).children().eq(0).attr('id'); I want to know that, had I already stored the id of that children div in variable called i. Or I have to write some other codes? If I have to write some other codes what it might be? As I am new to jQuery it will be very helpful if I get any suggestion.
thisis the DIV reference, you only have one child.eq(0)so yes, that gets the id of that first child element IF it has an id property. stackoverflow.com/q/3239598/125981 for the id, api.jquery.com/children - the children. api.jquery.com/eq the.eq(0)