Skip Navigation

[Resolved] View grid / tabel results not as expected

This support ticket is created 4 years, 3 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 35 replies, has 2 voices.

Last updated by tracyN 4 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#1848689

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tracy,

Try it like this.


    jQuery("select[name='wpv-event-categories'] option[value='performances']").attr('disabled','disabled')

This should work now as i've managed to test it on the frontend.

Thanks,
Shane

#1848743

Many thanks,

It's not working I'm afraid.

Does it need a ; at the end?

Does it need " instead of ' for the bits here.... name='wpv-event-categories'] option[value='performances']

Thanks again.

#1848753

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2020-11-18 at 10.20.44 AM.png

Hi Tracy,

Not sure what you mean by the code isn't working. When I checked the value on the frontend the item is disabled. See Screenshot

As you can see Performances is greyed out a bit, which means it's not selectable.

The code format that I provided is actually correct. Its good practice to use the ; at the end of line, however given that this is Javascript its not required.

Thanks,
Shane

#1848783

Hi Sean, 'performances' and a few other items need to be completely removed from the list not just disabled, apologies if I wasn't clear in my description of what I needed. I googled it and found the remove option and the following work now...

jQuery("select[name='wpv-event-categories'] option[value='performances']").remove();
jQuery("select[name='wpv-event-categories'] option[value='theatre-booking']").remove();

Thanks again for all your help, much apprecaited!

#1848921

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tracy,

Happy to see that its all sorted now.

If there are no further issues then you can go ahead and mark this issue as resolved.

Thanks,
Shane

#1849739

My issue is resolved now. Thank you!