As someone new to the world of web development, I am currently learning and working on a project. I have encountered an issue with creating a custom div that includes a link and user-defined text. I want the div to be generated automatically when the user clicks the ADD button, and prompt the user to input contents such as a heading (which will become a link) and additional text.
Can you advise me on which JavaScript or jQuery functions I should utilize?
For example:
--------- | ADD | ----------- //First div --------- | Link | | | | Text | |description| | | ----------- ----------- //Second div | Link | | | | Text | |description| | | ----------- ----------- //Third Div | Link | | | | Text | |description| | | -----------