function quoteMess开发者_运维问答age(tekst, poster)
{
var selected = getSel($('tekst'));
if(selected.length > 0)
{
$('br').remove();
$('tekst').value = $('tekst').value.replace(selected, '[quote=Bericht geplaatst door' + poster + ' "] ' + tekst + ' [/quote] ');
}
else
{
$('tekst').value += '[quote=Bericht geplaatst door: ' + poster + ' "] ' + tekst + ' [/quote]';
}
$('tekst').focus();
}
How i can delete img scr in the Javascript code above?
If the element is part of the dom you can remove that attribute by,
$(<someway to select image>).attr('src',"");
you can use
$("img").remove();
or
img with id
$("#img_id").remove();
I'm not sure if this is what are you looking for but your question is quite hard to understand
In your case:
$("#img [alt='smiley']").remove();
精彩评论