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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:37:21+00:00 2026-05-22T19:37:21+00:00

I am working on a search panel, where I want to bind the data

  • 0

I am working on a search panel, where I want to bind the data entered in these input elements to a search parameter json object. This search parameter will then be used for, you guessed it right, searching.

For example, user when searching for another person and he can specify the name, age or sex of the person on the page. I have json object which has, as its members Name, Age and Sex. I want to bind the inputs entered in the corresponding input elements on the page to this JSON object automatically, so when the user clicks on the Search I will just use whatever the json object has as a search param.

This is primarily to avoid having to – first find the corresponding element and then assign the corresponding member of the JSON object to the input in this field.

I could find jquery plugins (Databind) , which do the other way round i.e. transfer the values of a JSON object to the input elements.

Thanks in advance!!

  • 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-22T19:37:21+00:00Added an answer on May 22, 2026 at 7:37 pm

    I think you are confusing your terminology: presumably you mean a Javascript object.

    Anyway, your object or json string need to be constructed when the user clicks “Search”. It will be difficult/fiddly to assign these as the user enters text into the input fields. You could use the onblur event but you’re just making unnecessary work for yourself.

    Far easier is just to give each input field an id, and when the user clicks “Search” you build your object, then JSONify it. Here’s how you might do it (not tested!):

    <input type="text" id="name" />
    <input type="text" id="age" />
    ...
    
    var obj = { };
    obj.name = document.getElementById('name').value;
    obj.age = document.getElementById('age').value;
    ...
    var json = JSON.stringify(obj);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a search feature for my application, I want to search all
I am trying to put full text search working on SQL Server 2008, however
I am altering the question now! I have the search working using the following:
I am working an a search page that allows users to search for houses
I am working on a search application that uses a form with 16 filter
I'm working on a search component for an app I'm working on and I
I am working on a search box that displays different options based on a
I'm trying to get a simple search form working in my RoR site. I've
I'm working on an 'advanced search' page on a site where you would enter
Somehow Visual Studio search has stopped working for me. Anytime I search Entire Solution

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.