I need to create a div element on the fly using JQuery as a response to a user input. Can someone please help?
You can use .append() function as follows.
$("#yourElementID").append("<div>Div content goes here</div>")
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
You can use .append() function as follows.
$("#yourElementID").append("<div>Div content goes here</div>")