Jump to content
Larry Ullman's Book Forums


  • Posts

  • Joined

  • Last visited

delaroc2's Achievements


Newbie (1/14)



  1. Hello, This is a beginner's question regarding the "creating errors messages" (pp 381) and the "putting it all together" (pp 415). I'd appreciate if someone could clarify some of the code. In page 318, in the HTML after the paragraph "With that HTML, elem.parentNode refers to the DIV, so appending a new child results in: ..." 1) Shouldn't the span in this HTML have a class = 'error', which was assigned in step 4 ? 2) Why do we need to add a class = 'error' to the span and to the label anyway? I am assuming it is for changing the CSS but I don't see it used in the "Putting it all together" code of page 415. In page 415-420, "Putting it all together": 1) Why do we need the class = "two" in each DIV ? 2) How the CSS was manipulated to change the labels with error to red color. Thank you very much for your help.
  • Create New...