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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:33:26+00:00 2026-06-05T21:33:26+00:00

I am trying to tick a checkbox which is inside the first cell of

  • 0

I am trying to tick a checkbox which is inside the first cell of a tablerow.

var checkbox = $(this).find("td").eq(0);

returns an [Object object] but when I use the html() function it is clear that it returns only the code for the input element.

Is it possible to cast the variable checkbox so that I can then check it?

  • 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-05T21:33:28+00:00Added an answer on June 5, 2026 at 9:33 pm

    You’re getting [Object object] because .eq() returns a jQuery object.

    You’re getting HTML code with .html() because that is a method of the jQuery object, which returns the HTML inside an element (similar to raw Javascript .innerHTML()).

    To get the raw HTML DOM element from a jQuery object, you can try something like:

    var rawDomElement = $(this).find('td')[0];
    

    EDIT

    But if you want to check a checkbox, you can try calling .attr('checked', true) on a jQuery object representing the checkbox DOM element.

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

Sidebar

Related Questions

Trying to use this method (gist of which is use self.method_name in the FunnyHelper
I'm trying to create a timer which updates a label every tick, This is
I am trying to use this function: function storagecalc(){ var thediv=document.forms[boxes]; var boxno=thediv.elements[numbofboxes]; var
I'm trying to specify custom Y axis tick marks, but IDL is not cooperating.
I'm trying to set custom tick marks on my imshow() output, but haven't found
I am currently trying to find a simple, easy way to publish/broadcast stock tick
i am trying to code a TSR (DOS 16BIT), in which every tick of
Am trying to hide this publish 'tick-box' from non-admin users. I used the CanCan
I'm sure this is very readily solved. I'm trying to invoke slowbie.tick(); Here's the
quick question on tick data. I have tons of data under this format which

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.