Skip Navigation

[Closed] the jquery i am using

This support ticket is created 4 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 4 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#1660637

Tell us what you are trying to do?
I am using some jquery in a cred form and trying to select labels in a taxonomy field - checkboxes with hierarchy
Is there any documentation that you are following? there is none i could find, although of course we look at jquery docs

Is there a similar example that we can see? i can only give you the code i am currently using
jQuery(document).ready(function(){

jQuery("label.wpt-form-label.wpt-form-label-checkbox-label").each(function( index ) {
(this).css("background-color", "yellow");
});
});
I am trying to single out the States in the States County checkbox lists

What is the link to your site? hidden link

#1662267

You could try adding two list item ancestor selectors to set the hierarchy, and correct the label class, like this:

jQuery("li li label.wpt-form-label.wpt-form-checkbox-label").each(function( index, item ) {
jQuery(this).css("background-color", "yellow");
});

The topic ‘[Closed] the jquery i am using’ is closed to new replies.