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

  • Home
  • SEARCH
  • 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 7629611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:52:43+00:00 2026-05-31T05:52:43+00:00

I am trying to select some elements within a portion of the page $table

  • 0

I am trying to select some elements within a portion of the page

$table = $(".table");
console.log($table);//this is fine
$edit_butts = $(".btn_edit", $table);
console.log($edit_butts);//elements dimmed and seemingly detached from dom - no click binding etc work

Does anyone now why these elements are getting dettached?

In console

bright and when clicked element found in dom
    jQuery(table.table)

dimmed, when clicked firebug goes to edit screen
    jQuery(div.btn_edit, div.btn_edit, div.btn_edit, div.btn_edit, div.btn_edit, div.btn_edit, div.btn_edit, div.btn_edit)

Any help much appreciated.

Also I should point out but I’m not sure if relevant the portion of the page is wrapped with a knockoutjs with directive.

<table  class="table>
<!-- ko with: model.item -->
edit butts
<div class="btn_edit"></div>
<!-- /ko -->
</table>
  • 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-31T05:52:45+00:00Added an answer on May 31, 2026 at 5:52 am

    The with binding removes the children of the element that it is applied to and keeps a copy to use as a template. If the item that the with is bound against changes, then the template is used to generate the content and this happens even for the initial rendering.

    The with binding is actually the equivalent of template: { if: myData, data: myData }, which uses anonymous templates (the children of the element).

    So, the elements are getting removed from the DOM. I am not sure of your objective, but if you find the elements after ko.applyBindings is called, then you would have a reference to the current elements being used inside the with binding.

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

Sidebar

Related Questions

Ran into this error message while trying to select some records off a table.
i'm trying to select some form elements when focusin and with this: $('textarea, input,
I am using jQuery 1.3.2, and I'm trying to select some elements in an
Using Drupal 6.20. We can setup some form elements like this:- <input type=select name=somename[]><option>ohai</option></select>
I'm trying to select all tr elements inside a table , except the third
I'm trying to select some integer values in MySQL. Several of the values are
When I selected some item in combobox and then I'm trying to select another
I need some help with SQL Query. I am trying to select all records
In trying to select elements that have any attributes, the following throws a jQuery
I've been trying to create a button within a php page called by ajax

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.