Since CSS3 no get parent Selector...i will do it manually by myself$('p').each(f … | Forum

Topic location: Forums » Websites » CSS
goodmuyis
goodmuyis Dec 29 '18

Since CSS3 no get parent Selector...i will do it manually by myself

$('p').each(function() {   var className = $(this).attr('class');   $(this).parent().addClass(className); })

Am sure our grandchildren will have a simple and better solution

0
Share:
dhtml
dhtml Dec 29 '18

Most definitely!

0
Ayo
Ayo Dec 31 '18

lol

0
limistah
limistah Dec 31 '18
I have written code that has $ sign like this ehn, being over 12 months. Vanilla JS inside of react, vue is what I have been using, as a result of the tooling: I don't love including jQuery as a dependency in a node based development tool or something that manipulates the DOM.
0
dhtml
dhtml Jan 1

Variety is the spice of life. . . .

0

Blogs

Fulloaded
Hello, I just want to , let you know about Fulload... more
Bankole Ahmed
PHP Introduc tion First of all before we start the... more
marko
The best way to start is to do this: sudo port li... more
marko Nov 6