[Solved] I don’t know what I’m doing wrong [closed]


  1. You define emailTrainer inside another function (for no apparent reason: it is waiting for the DOM to be ready, but doesn’t operate on the DOM) but then try to access it in the global scope (where it doesn’t exist).
  2. You are using document.write after the document has loaded. This will wipe out the existing document. Use DOM manipulation instead.
  3. You misspelt href as herf
  4. You misspelt javascript as javacript, but the type attribute is optional (for JS) since HTML 5 and should be omitted to avoid the possibility of such typos.
  5. You missed out the concatenation operator (+) between dName and '?Subject="
  6. You are calling $ from jQuery but have given no indication that you”ve loaded that library (and, as mentioned in 1 you aren’t using it for anything useful anyway)

1

solved I don’t know what I’m doing wrong [closed]