Imagine, there are two files
- test.php
- index.php
In test.php there are only a html button with id click.
In index.php there are also only a html button with id send.
If I send an ajax request to test.php file from index.php then the button with id click from test.php should be inserted within a div in index.php. Now I want this button to hide p element when it is clicked within index.php.
Note: onclick attribute should not come with #click button.
How to do that? I am currently using android phone to ask this question. So I am not able to write the question with examples.