Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Please Help! Only one Anonymous Functions works at a time.

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36824
    jcoder
    Member

    Am I doing something wrong here? I have two anonymous functions to validate two different forms on two different pages. They both work individually though when I try and put them in the same script.js folder only one works.



    #97387
    jcoder
    Member

    I have two different forms on two different pages, one function is for one page and the other function is for the other. I wanted to combine the JS in a script.js doc. It seems that whichever function is on top is the one that works. Not sure what the problem is

    Thanks

    #97391
    jcoder
    Member

    Yeah this will work, but I was trying to get it to where I don’t have to have any javascript in my HTML. My other websites are filled with this kind of stuff and I was trying to get it toned down.

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.