using jquery, i have an unordered list <ul>, of which one of its <li>s is in the class…
Jump to turn (12)
- 1using jquery, i have an unordered list , of which one of its s is in the class "
- 2thanks that worked. now how does this work if the element has not yet been inser
- 3i want a bootstrap popover to appear to emanate from an icon. i have a DOM objec
- 4in your example i don't see where the table is
- 5how does the html connect to the icon
- 6can i have some simple example code for a bootstrap toolkit popover
- 7in this example when you roll the mouse over the button, what html code do you s
- 8how do i specify "Some content inside the popover"
- 9in css, how do you select the first in a table row?
- 10in css how do i say that the text in this ends with a ':'
- 11i want to ADD a : at the end of the text
- 12what if it's only for the first not the second and third?
- User
using jquery, i have an unordered list , of which one of its s is in the class "active". it has a nested element, a span, class == "spCloseBox". I want to set its visiblity property to visible.
- Assistant
To set the visibility of theelement with the classspCloseBoxthat is nested within anelement of classactivein a, you can use jQuery as follows:
────────────────────────────────────────────────────────────────────
javascriptCopy code// Using jQuery to set the visibility of the span element $("ul li.active span.spCloseBox").css("visibility", "visible");
This jQuery selector$("ul li.active span.spCloseBox")targets aelement with the classspCloseBoxthat is a descendant of anelement with the classactive, which itself is a descendant of a. The.css("visibility", "visible")function then sets the CSS visibility property of this element tovisible.