.html(function(){});
.html(function(){});
It would be great to add this functionality to the .html();
$('#element').html(function(){
return 'xxx';
});
Right now the closest method to do this is
$('#element').html(htmlfun('#element'));
Topic Participants
lucentminds
John Resig
erik.beeson
Jörn Zaefferer
dswitzer