Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6809597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:06:19+00:00 2026-05-26T20:06:19+00:00

I am trying to add some multiple form fields in separate divs. But by

  • 0

I am trying to add some multiple form fields in separate divs. But by adding some divs with buttons i get the following error when i click a button within a div:

Object # has no method ‘click’

I get this error when i move the </form> tag under a second or third div. I don’t get an error when i put the </form right under my first div. The form has a total of 4 divs all with a bunch of buttons.

The next button just shows the next bunch of buttons (simple jquery slideup/slidedown). Each button triggers a function called win() like so

<input type=button class="team round1" value="a1" name="WIN0_1" onclick="win(this)"/>

Now per div i have given some buttons the same name (for example: name="WIN0_1" exists 4 times)

Sorry for this chaotic post, but i hope someone has a suggestion

PS: as for the form in seperate divs i followed this tutorial.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:06:19+00:00Added an answer on May 26, 2026 at 8:06 pm

    alright so based on you code http://jsfiddle.net/123js/Xm5Rt it looks like by copying the div’s with input’s you get a collection of buttons on this line:

    var winnerButton = winner.form.elements["WIN"+nextlevel+"_"+nextgame];
    

    so winnerButton isn’t 1 but multiple buttons.

    when trying to trigger a click() on a collection of elements you get the error you mentioned.

    The solution could be many things… To know sure you have to post the complete html (form + div’s + input’s) so we could have a beter look.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to add some security to my ASP.NET 1.0 MVC app (VB), but
Im trying to get a form element value using closest. Here some example code.
I'm trying to add some items to a NSPopUpButton during runtime, but I cannot
I am trying to do multiple product add with a form using php and
I need some help to figure out how to add multiple fields, on a
I'm trying to get some aggregate values from different tables, but my problem is
Im trying to add some short file names to a Wise installer to fix
I am trying to add some custom build steps to my headless build process
I'm trying to add some accessibility for screen readers into a Flash application, and
So I'm trying to add some ability to my project to allow user-defined properties

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.