Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use function javascript key word as an attribute in javascript

 
Salil Vverma
Ranch Hand
Posts: 257
Hibernate Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

In a form, we have a drop down by the name function. To make it mandatory for users to select it, I used the following line of code. It is working fine in firefox but not in IE. Can any one suggest me how we can tweak this so that it could be accepted in both firefox and IE.



 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is IE giving an error message?

Eric
 
Salil Vverma
Ranch Hand
Posts: 257
Hibernate Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yup, it is giving the error message "Error: identified expected" at this section.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well easiest solution, change the form element name

You can also try to do



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