Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery CSS Selector background

Tags:

html

jquery

css

I've to do the following simple CSS selector using jQuery , but I can't :

"#test > *"

I've tried in many ways but I just can't do that!

$("#jqt > *")

or

$('*',$("#jqt")).css()

the last one seemed to work but I realized that it shoudnt!!

How should I do this simple selection to add a very simple CSS property (background-image and font-family)????

Thanks in advance

like image 502
madcowzz Avatar asked Aug 09 '26 18:08

madcowzz


1 Answers

Instead of $("#jqt > *") try $("#jqt").children()

like image 66
Blazemonger Avatar answered Aug 11 '26 09:08

Blazemonger



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!