Linked Questions

14 questions linked to/from Add/remove HTML inside div using JavaScript
-2 votes
2 answers
6k views

On clicking on add button in html page a div should be displayed on html page and multiple div should be shown on multiple clicks. Each div should have X icon and on clicking x, div should disappear ...
maggie's user avatar
  • 95
0 votes
3 answers
3k views

I'm getting trouble while making dynamic new divs. Can anyone help me to do this. Here is my div. <div className="intent" id="intent1" style={{border:'1px solid #eee'}}> <...
user avatar
0 votes
4 answers
1k views

How can I add the same element (with the same id) by clicking a button that has javascript attached on onclick() (I have no JS at the moment)? I thought about using document.write and then just add ...
MarisP's user avatar
  • 985
0 votes
1 answer
1k views

I have below code, I want to add this inside a parent div <div style="width: 100%; overflow: hidden;"> <div style="width: 10%; float: left;"> <div><img src="assets/img/abc.png" ...
Ritzor's user avatar
  • 665
2 votes
2 answers
829 views

I have a very simple layout, part of it is as follows: <td class="subset"> <form name="searchFrm" method="get" action="update.php"> <input type=&...
Tom's user avatar
  • 1,640
1 vote
6 answers
230 views

So I have this string: var textToBeRendered='<h1>I am a string of text</h1>'; If I have a div on the DOM, how would I be able to render the string to the div element as an actual header? ...
elloM8's user avatar
  • 164
0 votes
6 answers
1k views

I try to do a dynamic for ans I am very new with JS. With what I do, new added field keeps on deleting the previous: function add_input() { var s = document.getElementById('ref').value; var ...
0 votes
1 answer
434 views

I've used the code from Add/remove HTML inside div using JavaScript to make it suite my needs but unable to make any added <div> or <span> editable with any of the edit in place scripts ...
1 vote
2 answers
243 views

I have the following form and after the "Join" button is clicked, it should change to a delete button. I want to change the text to say delete and change what it does. This is my code: <form ...
0 votes
4 answers
125 views

How would I go about making this HTML contact form interactive? <!-- Contact Us Form --> <div class="contact_form_container"> <form id="reply_form" action="send.php" method="POST"&...
0 votes
2 answers
136 views

This question is linked with Frustrating innerHTML Issue. Since this question was a duplicate of another question, so I referred to that question for a solution. I adopted the 2nd answer in the list (...
Youstay Igo's user avatar
-1 votes
2 answers
94 views

I am using php to develop my website. I have a <div> which contains multiple input fields. Now My question is how can I repeat the same <div> multiple repeatedly once I go on clicking on ...
-1 votes
1 answer
74 views

basically i want to print a list of the api but Im not sure if im using the template literal correctly <h6>XMLHttpRequest</h6> <ul class="testing"></ul> html var xhr = ...
user avatar
0 votes
1 answer
42 views

so i found this thread, but I can't figure out how to actually call the functions. i have tried: removeRow('message') and removeRow(document.getElementById('message')) i am using the accepted answer ...
Cronk's user avatar
  • 11