Question: I need to transform this :

```
<input type="button" value="O">

```

In a text. Anyone can help me?

Answer: 
If I have understood the question correctly following snippet you should do the trick:

```
$('input[type=button][value=0]').replaceWith(function() {
    return document.createTextNode(this.outerHTML);
});

```

The above snippet basically replaces the element with it's string representation. 

<http://jsfiddle.net/aet4u3e1/>
Using the following straight DOM code works just fine:

```
var input = document.createElement('input');
input.type = 'button';
document.body.appendChild(input);
input.type = 'text';
input.value = 'this is text';

```

more infos [Here](https://stackoverflow.com/questions/1544317/change-type-of-input-field-with-jquery)