how can i get all “rt_XX” with jquery each?
I have no idea :/ .. Hope somebody can help me.
$("body").data('conf_pkc', 'normal');
$("body").data('conf_sst', '0');
$("body").data("rt_01", { tw:'k25', title:'Bernd', descr:'man' });
$("body").data("rt_12", { tw:'k115', title:'Hugo', descr:'man' });
$("body").data("rt_55", { tw:'k25', title:'Jan', descr:'man' });
/*
$.each( XXXXXXXXXXXX , function(k, v){
var rt_tw = $('body').data('rt_01').tw;
var rt_tw = $('body').data('rt_01').tw;
$('#d1').append('rt_tw -> '+rt_tw+'<br />');
$('#d1').append('rt_title -> '+title+'<br />');
$('#d1').append('rt_descr -> '+descr+'<br />');
});
*/
http://www.jsfiddle.net/V9Euk/543/
Thanks in advance.
Peter
If you’re using jQuery 1.4+, you should be able to do something like this:
Just tested this at your link. Works as intended!
Good luck!