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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:18:00+00:00 2026-06-01T23:18:00+00:00

If I do this: var inputs = $(‘input[name=ch_attachments[featured][]]’); How do I find inputs that

  • 0

If I do this:

var inputs = $('input[name="ch_attachments[featured][]"]');

How do I find inputs that are checked from the object inputs?

I’ve tried:

var checked_inputs = $(inputs, ":checked");

and

var checked_inputs = $(inputs).find(":checked");

Both didn’t work. Before you answer I cannot use

var checked_inputs = $('input[name="ch_attachments[featured][]"]:checked');

as this processing is done in a function where only inputs is passed so I need to find the checked inputs from only using the object inputs.

  • 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-01T23:18:02+00:00Added an answer on June 1, 2026 at 11:18 pm

    You can use filter for this.

    http://jsfiddle.net/Xgv8C/2

    var $inputs = $('input[name="ch_attachments[featured][]"]');
    $inputs = $inputs.filter(':checked');
    alert($inputs.length);
    ​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this js code: $(#startSearch).live(click, function(event) { $(input:checkbox[name='searchId']:checked).each(function() { var searchId = $(this).val();
jQuery('ol.productList li.product input[name*=cart.pAsin.]').load().each(function(){ // each function var asinId = jQuery(this).val(); var pUrl = jQuery(this).siblings(a).attr('href');
var brands = document.getElementsByName(brand); for(var brand in brands){ $(input[name='brand']).eq(brand).click(function(){ alert(hello22); loadDataFN(1); }); } This
Basic question; I have this code: var partipiansRow = '<div class=form-row ><input type=text id=name
i have an input on my webapp like this: var t = '2012-03-27T23:30:00Z'; What
I am using an ajax call which is as follows var ID=$(this).attr('id'); var input=$(#input_+ID).val();
This is My View: @foreach(var action in Model.Category.Actions) { <div class=action style=margin-right: 30px;> <input
var query1 = urlencode($('input[name=searchTerm]').val()); //user1 $.getJSON('http://twitter.com/friends/ids.json?screen_name='+ query1 +'&jsoncallback=?', function(data){ $('content').append(''+data.length+''); }); This is a
I use this code to determine checkbox width and height: var chk = $('input[type=checkbox]:first');
Look at this: $('form).submit(function (event) { $(':input.required').trigger('blur'); var num = $('.warning', this).length; alert(num);//Focus here!

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.