Comment définir la valeur/le texte d'un div
?Comment régler la valeur div
<div id="numberOf"></div>
$("#btn").click(function (event) {
$.getJSON('http://host/myServiceImpl.svc/GetCount?method=?',
{ id '1' },
function (data) {
alert(data);
$("#numberOf").val = data;
}
);
});
deuxième cas devrait être '.html (données)' –
@Gaby - bonne prise :) –