laker001 laker001 - 1 year ago 73
HTML Question

Formatting data in a modal html

I'm building a web application and i want to show some data in a modal, but i want it to have the following format:

Name: John
ID: 7

being John and the number 7 the data itself.

The problem is that i'm only able to achieve this using input boxes, like this:

<div class="form-group modal-body">
<label for="tableName" class="control-label">Name:</label>
<input type="text" class="form-control" id="tableName">
<div class="form-group modal-body">
<label for="tableID" class="control-label">ID:</label>
<input type="text" class="form-control" id="tableID">

How can i do this, so i don't have the input boxes surrounding the data ?

Answer Source

you can use <span> in the place of <input>


<input type="text" class="form-control" id="tableName">


<span>John(some dynamic data)</span>

maybe this is what you are asking...

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download