1
Ich versuche, eine Navigation zu sortieren, sollte jeder Elternteil A versteckt werden/unsichtbar, mit Ausnahme der child.innerHTML == sorttypeJavascript Filter ausblenden Kind innerHTML-
Wie kann ich das erreichen?
function sort_sidebar(type) {
if(type && type.substring(0,6) == "#sort=") {
$('#id > div > a').hide()
// $('#id > div > a > p:last-child > span:last-child').show() where innerHTML == type.slice(6).toUpperCase()
history.pushState("", document.title, type)
alert(type.slice(6).toUpperCase())
} else {
$('#id > div > a').show()
history.pushState("", document.title, window.location.pathname + window.location.search)
}
}