p").foo(); do something...">All geek questions in one placeAdding a string to this in jQueryIf this one is an HTMLDivElement, how can I avoid this?$('#' + $(this).id + " > p").foo(); do something like:($(this) + $( " > p")).foo(); +3jqueryPhonethics May 02, '10 at 18:02source share2 answers$(this).children('p').foo(); +9interjay May 02, '10 at 18:05source shareTry the following:$(this).find("> p").foo(); +3zaius May 02, '10 at 18:06source shareSource: https://habr.com/ru/post/1743727/More articles:Parsing two-dimensional text - regexmultiple columns per day with a full calendar - jqueryIn which segments is the compiled C program used? - cjQuery вставка комментария - jqueryWhat video format should webapp use? - web-applicationsMeeting at the center of an attack on NTRU Private key - private-keyIn JPA - A map of nested values that have an embedded object used as a key - hibernateUIToolbar UIBarButtonItem Alignment Question - iphoneБлокирующие скрипты IE - scriptingYou can populate the data using the Lambda expression (C # 3.0) - c # -3.0All Articles
If this one is an HTMLDivElement, how can I avoid this?
$('#' + $(this).id + " > p").foo();
do something like:
($(this) + $( " > p")).foo();
$(this).children('p').foo();
Try the following:
$(this).find("> p").foo();
Source: https://habr.com/ru/post/1743727/More articles:Parsing two-dimensional text - regexmultiple columns per day with a full calendar - jqueryIn which segments is the compiled C program used? - cjQuery вставка комментария - jqueryWhat video format should webapp use? - web-applicationsMeeting at the center of an attack on NTRU Private key - private-keyIn JPA - A map of nested values that have an embedded object used as a key - hibernateUIToolbar UIBarButtonItem Alignment Question - iphoneБлокирующие скрипты IE - scriptingYou can populate the data using the Lambda expression (C # 3.0) - c # -3.0All Articles