Skip to main content
edited body
Source Link
Andreas Grech
  • 108.4k
  • 102
  • 303
  • 362

Have you considered using a framework such as jquery? The above code would then become...

$('.welcome''#welcome').html("<font color='white'>Logged As: TEST</font>"); 

Have you considered using a framework such as jquery? The above code would then become...

$('.welcome').html("<font color='white'>Logged As: TEST</font>"); 

Have you considered using a framework such as jquery? The above code would then become...

$('#welcome').html("<font color='white'>Logged As: TEST</font>"); 
Corrected error made in code.
Source Link
Ian Roke
  • 1.8k
  • 1
  • 19
  • 28

Have you considered using a framework such as jquery? The above code would then become...

$('.welcome').texthtml("<font =color='white'>Logged "...";As: TEST</font>"); 

Have you considered using a framework such as jquery? The above code would then become...

$('.welcome').text = "..."; 

Have you considered using a framework such as jquery? The above code would then become...

$('.welcome').html("<font color='white'>Logged As: TEST</font>"); 
Source Link
Ian Roke
  • 1.8k
  • 1
  • 19
  • 28

Have you considered using a framework such as jquery? The above code would then become...

$('.welcome').text = "...";