I am using
$('#'+type+'name'+id).hide().html('ghj').fadeIn(150);
Which works fine. But when I use
$('#'+type+'name'+id).hide().html('
A lot of html code
').fadeIn(150);
The function does not work anymore. Since I want to keep the function tidy I want to put the HTML there in multiple lines. Why doesnt this work?
EDIT: Still does not work:
function Rename(type,id,content){
$('#'+type+'name'+id).hide().html(' '+
' <td height=\"20\" valign=\"middle\">'+
' <span onclick=\"RenameDo(\'notify\',\''+id+'\',''+content+'')\">'+
' <img title=\"Wijzigen\" class=\"LinkImage\" src=\"/common/images/save.png\">'+
' </span>'+
' </td>'+
' <td valign=\"middle\" rowspan=2> fghfgh</td>'+
' ').fadeIn(150);
}
RenameDotakes strings as arguments?