0

Just want to change the input type from text to label so it don't display like it can be edited. Is there a way?

For example I have an input tag here

<td><input class='edit' type = 'text' style="height:90px;" name="ID[]" value='<?php echo 
$row['ID']; ?>' maxlength="50" readonly="readonly"/></td>

Now it's not editable but it looks like a textbox, how can i change it to label type of look?

4

2 に答える 2

5

Are you looking for <label>, or are you simply trying to add some CSS to make your readonly input look less like an input area?

input[readonly]
{
    border: none;
    background: none;
}
于 2013-08-21T03:57:21.407 に答える