gpt-3.5-turbo-0613· OpenAI
WildChat-4.8M (AI2)
I have below html: <div id="namecardcontent"> <div id="divcoupon"> <div…
- User
I have below html:
I want to use jquery to add "testing content" after the div with id="nc_contact-btn". how to do it?
- Assistant
You can achieve this using the jQuery
after()method. Here's the code to add the<div id='nc'><p>testing content</p></div>after the div with id="nc_contact-btn":$("#nc-contact-btn").after("<div id='nc'><p>testing content</p></div>");This will insert the new
<div id='nc'><p>testing content</p></div>immediately after the div with id="nc_contact-btn".