title: Change text input values dynamically
body: <p>My question might be quite easy for you guys, but it's hard for me...</p>
  
  <p>I have a text field and I want to change its value between once <code>&lt;label id="some_id"&gt;</code> is clicked. Until what I've described now, I can do it myself with jQuery, but here comes the complex part (for me, obviously):</p>
  
  <p>I have two values I want for that text field, and once that <code>&lt;label&gt;</code> is clicked, it switches to the value that isn't shown, but once we click it <strong>again</strong>, it goes back to the original text the text field contained.</p>
  
  <p>I have to keep my jQuery/JS internal because I get the desired values from the database and I don't want to make my <code>.js</code> files <code>.php</code>.</p>
  
  <p>This is what I got:</p>
  
  <pre><code>&lt;label for="html" onclick="$('#html').val('&lt;?php echo $image-&gt;convert('html_b', $image_data['image_link']); ?&gt;')"&gt;HTML:&lt;/label&gt;
  &lt;input type="text" id="html" value="&lt;?php echo $image-&gt;convert('html_a', $image_data['image_link']); ?&gt;" readonly /&gt;
  </code></pre>
  
  <p>It does the first part I need, changing the value of the field to the new value, but once that button gets clicked again, I want the original text.</p>
  
  <p>Thank you.</p>