I have this input:
<form action="">
Primer Apellido <br>
<input type="text" name="apellidos" id="paterno" / onkeyup="mayus(this);" onkeypress="Genera()">
<br>
</form>
I want that when I write for example "COLA" I change it to "COLX" and that this happens with all the other words that are in this array:
var inconvenientes2 = [ 'BACA', 'LOCA', 'BUEY', 'COLA' ];
And they should be changed by the words in this array according to the order:
var inconvenientes2 = [ 'BACX', 'LOCX', 'BUEX', 'COLX' ];