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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:33:30+00:00 2026-05-27T08:33:30+00:00

HTML: <div id=wrapper> <span class=stuff>Content</span> <span class=stuff>Content</span> </div> JQuery: $(document).delegate(#wrapper > *,click, function(){ //do

  • 0

HTML:

<div id="wrapper">
  <span class="stuff">Content</span>
  <span class="stuff">Content</span>
</div>

JQuery:

$(document).delegate("#wrapper > *","click", function(){
  //do stuff
}

Above is a short code break out of my structure.

Basically I am trying to provide an click event for the parent and all children.

This seems to work fine in Safari, Chrome, Firefox, and IE 7+. However it doesn’t seem to on iOS devices (have not tested android).

Anyone have any idea how to get this to work, or a better approach?

  • 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-27T08:33:31+00:00Added an answer on May 27, 2026 at 8:33 am

    Try this on your iOS device: http://jsfiddle.net/r3E6a/1/show

    Code is here: http://jsfiddle.net/r3E6a/1/

    Cheers.

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

Sidebar

Related Questions

I have this html: <div class="object-box"> <img ... /> <span class="caption">This is the caption</span>
Consider the following example: ( live demo here ) HTML: <div id=outer_wrapper> <div class=wrapper>
I have the following simple code, where I double click a div (with class
here is link to an example: http://techchorus.net/demos/jquery/hiding-input-elements-in-a-div.html It actally disables few elements on click
$('div.box').html(hello) puts the word hello inside all my div's of class 'box'. They all
it must be jquery I have file text.html with 6 div in (a,b,c,d,e,f) In
By default Html.ValidationSummary() produces HTML like this: <span class=validation-summary-errors>There were some errors...</span> <ul class=validation-summary-errors>
Assume I have the following html: <html> <head> </head> <body> <div id=wrapper > <div
I've got a HTML list, <div id=wrapper> <ul id=twitter> <li id=titleTile> <a href=# alt=Our
I have this code: <html> <head> <title>site</title> <script src=https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js type=text/javascript></script> <script type=text/javascript> $(document).ready(function() {

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.