title: How to save HTML "placeholder" attribute value into variable and alternate of "placeholder"
body: <p>I am displaying value in by using "<strong>placeholder</strong>" attribute in JSP and Bootstrap 4 like the following:
  1)</p>
  
  <pre><code>&lt;input class="form-control form-control-lg" name="nameTxt" value="nameTxt" type="text" inputmode="text"   placeholder="&lt;%= di.getName()%&gt;" Style="width: 320px"&gt;
  </code></pre>
  
  <p>2)</p>
  
  <pre><code>&lt;textarea class="form-control" name="txtAddress" rows="5" id="addressTxt" inputmode="text" placeholder="&lt;%= di.getAddress()%&gt;" style="width: 320px"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>Java:</p>
  
  <p>String name = request.getParameter("nameTxt");</p>
  
  <p>String address =request.getParameter("txtAddress");</p>
  
  <p>Question 1:
  it is displays data correctly by using "<strong>placeholder</strong>" but i want to show in textbox(just like typing in textbox) rather in placeholder
  How can i do it?</p>
  
  <p>Question 2:
  how can i store data in variable without changing the textbox(store placeholder value) in my class. Because it is able to store the value in variable only if i change the textbox value. If value exists in placeholder, it is unable to store in variable</p>
  
  <p>Please give examples of my code</p>