Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Recognizing a Form

 
samuel marin
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Recognizing a Form
I had created a form as follow:





I had identified the form with and id: myform.setAttribute("id","formIS");


Now I would like to identify my form to apply an IF instruction: something like:




I tried all the following options and none worked. Does anyone knows why?






I also tried to debug the code and this is what I see when I put the mouse over myform --> formis#formIS

Thanks you very much
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What element is this? myform=document.createElement("formIS"); I have never seen that type of HTML element.


myform=document.getElementById("formIS"); getElementById returns an object, how can you compare it to a string?

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic