Tuesday, April 16, 2019

jquery selector parent descendant

How to select child of a parent?

$('#home-toolbar .center').html(tabItem.getAttribute('label'));


Selects the center class of home-toolbar

From:

https://github.com/paulchin/onsen-06-tutorial/blob/master/www/app.js

Reference:

https://www.w3schools.com/jquERY/sel_parent_descendant.asp


No comments:

Post a Comment