jquery bockt!
am 06.10.2007 - 23:48 Uhr in
Ich hoffe, es gibt hier auch Jquery Gurus :)
Ok. Folgendes Problem. Ich habe einen Wysiwyg Editor. Nun möchte ich dort je nach dem Modifikationen einfügen.
function showRz(){
var iframe = $('#whizzyedit-haupt-text')[0];
var doc = iframe.document || iframe.contentDocument || iframe.contentWindow && iframe.contentWindow.document || null;
if( !doc ) return;
//and now jquery
$('.span_rz',doc).remove();
$('p', doc ).each(function(){
var tmp = $(this).attr('id'); //wenn hier class steht und in der unterzeilen . anstatt # dann klappts.
$("#"+tmp,doc).before("<span class='span_rz'>"+tmp+"</span>");
alert(tmp)
});
}Ich gehe also alle P attribute durch und möchte jedem p Attribute seine ID anzeigen lassen. Nur das will und will einfach nicht!
- Anmelden oder Registrieren um Kommentare zu schreiben

Neue Kommentare
vor 1 Tag 3 Stunden
vor 1 Tag 19 Stunden
vor 7 Wochen 5 Tagen
vor 7 Wochen 6 Tagen
vor 8 Wochen 12 Stunden
vor 8 Wochen 4 Tagen
vor 8 Wochen 5 Tagen
vor 9 Wochen 2 Tagen
vor 9 Wochen 2 Tagen
vor 9 Wochen 2 Tagen