I want to highlight all child elements of an element bodybefore an element with id foo(which is a child body). Since this does not look like a selector :before()or :after(), it works for me like this:
body
foo
:before()
:after()
$('body > :first').nextUntil('#foo').andSelf();
but it seems ragged. Could this be done with fewer function calls or more efficiently? Maybe something similar to $('body > *:before(#foo)')?
$('body > *:before(#foo)')
This is not that shreds. Infact, using your "*" example in the selector, is WAY slower than the calling functions.
So, I would suggest using one function in the original selector:
$('body').children().first().nextUntil('#foo').andSelf()
, DOM.
Source: https://habr.com/ru/post/1740359/More articles:Error: The magic number in the GZip header is incorrect - c #OpenLayers eraseFeatures does not erase functions from the map screen - openlayersScript Debugging in IE - javascriptHow to unselect audio? - iphoneJava Regular Expression String.replaceAll - javaIs there a free (like in beer) flowchart generator for the COBOL code? - diagramReally fast C ++ html parser - c ++How to get the zero index of the selected parameter in the selection field? - javascriptКак реализовать закон Бенфорда в MATLAB - matlabHow to set an array to a list of values in VB.NET? - arraysAll Articles