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 7854441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:03:57+00:00 2026-06-02T20:03:57+00:00

I have an application which uses some Tabs. The functionality of these tabs is

  • 0

I have an application which uses some Tabs. The functionality of these tabs is programmed with jquery (I dont know how to program jquery). So if I want to add a Tab I use this line:

<div class="tab">1</div>

I didnt program the function of that tab, but I need to add some other functions, so I am trying to use onclick() on the DIV (as next) but does not work.

<div class="tab" onclick="prueba()">1</div>

In order to make it work, I need to use something like this:

<div class="tab"><span onclick="prueba()">1</span></div>

My problem is that the size of the DIV is bigger, so the onclick() would only work by clicking exactly on the number, rather tahn any part of the div.

I already tryied to insert the DIV inside the Span (as next) but does not work.

<span onclick="prueba()"><div class="tab">1</div></span>

Does anyone know if this is happening because of jquery which is controling the functions on the tab??

Is there any way to use any element with onclick() outside the DIV with the “tab” class??

Thanks a lot, and sorry for my english

function prueba() {
   alert("HELLO");
}

Sorry not to put the jquery code, it is too long and I dont know exactly which part to show.

  • 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-06-02T20:03:58+00:00Added an answer on June 2, 2026 at 8:03 pm

    from this “I have an application which uses some Tabs. The functionality of these tabs is programmed with jquery (I dont know how to program jquery). So if I want to add a Tab I use this line:“

    it would sound as tho the jquery is looking for the “tab” class. I would suggest posting the jquery OR assigning the tab class to whatever element you wish to have trigger the action

    ie:

    <span class="tab" onclick="prueba()"><div >1</div></span>

    would probably fire ( unless it wants a div.tab ) ? Lets guess!

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

Sidebar

Related Questions

I have an application which uses Active Directory intensively. I want to know if
I have an ASP MVC application which uses some silverlight applications in the View.
I have a web-application which uses hibernate and for some reason every thread (httprequest
I have build a VB.NET application which uses PHP command line to run some
I have a small Java application which uses some configuration settings, which are saved
I have a Pyramid application which uses request.environ['REMOTE_ADDR'] in some places. The application is
I have an application, which uses some 3rd party libraries, for example Tesseract library.
So I have an application which uses threads. Now when the program first starts
I have a desktop application which uses flat files (some xml and small pictures)
I have created a c/c++ program which uses opencv library. I want to convert

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.