Hi Eliyahu, thank for response
ok
this :
function CambiarMayusculas(elemento1) {
var elem=document.getElementById(elemento1);
if (elem.value!="")
elem.value.Text.toUpperCase();
} ---------No run
this :
function CambiarMayusculas() {
var elem=document.getElementById('txtNombre');
if (elem.value!="")
elem.value.Text.toUpperCase();
} -------- that ok and run
Why?
Thank for your help
Victor
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:Or**************@tk2msftngp13.phx.gbl...
What never runs? CambiarMayusculas? It looks ok. May be there is something
important that you don't mention.
Eliyahu
"VKTOP" <va******@editoraperu.com.pe> wrote in message
news:Oc**************@TK2MSFTNGP14.phx.gbl... Hi friends!
I have a problem
i have a textbox in aspx webform:
in the load event :
txtNombre.Attributes.Add("onblur", "CambiarMayusculas(' txtNombre')")
i have a javascript function :
function CambiarMayusculas(elemento1) {var
elem=document.getElementById(elemento1); if (elem.value!="")
elem.value.Text.toUpperCase(); }
but never run
Thank
Victor