如何将以下内容转换为JQuery语法?
selectedelement.innerHTML="some html code";
答案 0 :(得分:1)
这样做
for selectedelement is a id
$('#selectedelement').html('some html code');
for selectedelement is a class
$('.selectedelement').html('some html code');
for selectedelement is a name
$('[name="selectedelement"]').html('some html code');