jquery bockt!
am 07.10.2007 - 00: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 10 Stunden
vor 3 Tagen 16 Stunden
vor 5 Tagen 9 Stunden
vor 5 Tagen 18 Stunden
vor 2 Wochen 4 Tagen
vor 3 Wochen 1 Tag
vor 7 Wochen 3 Tagen
vor 7 Wochen 3 Tagen
vor 7 Wochen 3 Tagen
vor 7 Wochen 3 Tagen