Append onload ajax response while DOM creation, as soon as the reference node is created in the DOM

167
December 14, 2019, at 6:40 PM

I need to append ajax response(which is an html) to a reference node while DOM creation. The ajax is called while loading the page. So as soon as the reference node is created, I want to append the returned html from ajax to the reference node. I have used jquery .after(), but it doesn't work on first load of page. So, is it possible to achieve this functionality? If it is, how should I proceed?

Rent Charter Buses Company
READ ALSO
Fire on change event in each checkbox when its checked

Fire on change event in each checkbox when its checked

I have a simple quiz in which user can answer multiple questions by clicking next, now I want to change the checkbox background when the checkbox is checked

174
Owl Carousel Rotates image to make it landscape coz one of my other images in the slider is landscape. How to fix this

Owl Carousel Rotates image to make it landscape coz one of my other images in the slider is landscape. How to fix this

Owl Carousel Rotates image to make it landscape coz one of my other images in the slider is landscapeHow to fix this

147
Jquery: $.ajax is not a function

Jquery: $.ajax is not a function

I'm getting the following error: $ajax is not a function

142
Highlight the corresponding menu item of active HTML section

Highlight the corresponding menu item of active HTML section

I have a position: fixed menu, which elements are section titles from my pageIf I am currently in any of the sections, I need to highlight the corresponding item in the menu

136