I have some strange comportement with my ajax request. The ajax request processes correctly, and the callback function removes a class 'invisible'
, that reveals a hidden div. In this div, I target an element with a "target" id. But quite strangely, when I want to add a text inside the div with an $("#target").text('hello')
; most of my webpage disappears. A wrong syntax ? Any idea ?
Best, Newben
Try $("#target").html('hello');