Quote:
Originally Posted by KkillgasmM
Thanks but that doesnt seem to quite work. An alert box pops up but it just says 'undefined', rather than the text contained in the <span>
Do you know how I could do that?
|
It should be innerHTML
(the forum adds random spaces to js code in posts. use the [code] delimiters to stop it happening)
eg:
Code:
var userNameValidate = document.getElementById('userNameValidate').innerHTML
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|