JQuery toogleclass funktioniert nicht mehr nach load()
Hallo zusammen,
nach einem Refresh eines DIV´s mittels
$(".tab-content").load(" .tab-content > *")
funktioniert der folgende JQuery Code nicht mehr.
Der Code befindet sich im Footer der Seite vor dem schließenden /body Tag.
$(document).ready(function() {
//Fixing jQuery Click Events for the iPad
var ua = navigator.userAgent,
event = (ua.match(/iPad/i)) ? "touchstart" : "click";
if ($('.table').length > 0) {
$('.table .open').on(event, function() {
$(this).parent().toggleClass("active", "").nextUntil('.header').css('display', function(i, v) {
return this.style.display === 'table-row' ? 'none' : 'table-row';});});}});
Kann jemand von Euch erkennen warum?
Danke und Grüße
René
nach einem Refresh eines DIV´s mittels
$(".tab-content").load(" .tab-content > *")
funktioniert der folgende JQuery Code nicht mehr.
Der Code befindet sich im Footer der Seite vor dem schließenden /body Tag.
$(document).ready(function() {
//Fixing jQuery Click Events for the iPad
var ua = navigator.userAgent,
event = (ua.match(/iPad/i)) ? "touchstart" : "click";
if ($('.table').length > 0) {
$('.table .open').on(event, function() {
$(this).parent().toggleClass("active", "").nextUntil('.header').css('display', function(i, v) {
return this.style.display === 'table-row' ? 'none' : 'table-row';});});}});
Kann jemand von Euch erkennen warum?
Danke und Grüße
René
Please also mark the comments that contributed to the solution of the article
Content-Key: 380930
Url: https://administrator.de/contentid/380930
Printed on: April 23, 2024 at 21:04 o'clock