Best Website Builders CompanyBest Website Builders Company
    What's Hot

    18-Wheeler Accidents: Fatalities and Injuries

    May 6, 2023

    The Particular Magic of Chicken, Egg and Rice

    May 3, 2023

    Tori Bowie: American three-time Olympic medallist and ex-world champion dies aged 32

    May 3, 2023
    Facebook Twitter Instagram
    Facebook Twitter Instagram
    Best Website Builders CompanyBest Website Builders Company
    • Home
    • CSS

      Implementing CSS with character and spirit: Union MoS Finance

      May 3, 2023

      Street Fighter 6’s unique character select screen animation really shows how much heart goes into the game

      May 3, 2023

      Make Google Chrome run faster with these 9 tips and tweaks

      May 3, 2023

      🅰️ New Angular 16 Goes Big in 2023: Everything You Need to Know | Vitaly Shevchuk | Oct 25, 2017 May 2023

      May 3, 2023

      🅰️ New Angular 16 Goes Big in 2023: Everything You Need to Know | Vitaly Shevchuk | Oct 25, 2017 May 2023

      May 3, 2023
    • Joomla

      For $50 you can host your website for life

      May 2, 2023

      California Department of Justice Investigating Shooting Involving CHP Officer in Glenn County Under AB 1506

      May 1, 2023

      Mariposa County Daily Sheriff and Reservation Report for Sunday, April 30, 2023

      May 1, 2023

      Top 10 Best Web Development Companies In India In 2023

      May 1, 2023

      Web Designer Job Description: Shaping the Digital Landscape

      April 30, 2023
    • PHP

      Anthony Carrigan Reflects on That ‘Barry’ Scene from Season 4 Episode 4

      May 1, 2023

      TikToker Kat Abu is very happy that Tucker Carlson has been fired

      April 28, 2023

      How ‘Single Drunk Female’ Season 2 Tackled Emotional Sobriety

      April 24, 2023

      Trans-Missouri Residents Affected by Attorney General Order

      April 24, 2023

      Andrew Tate’s conversion to Islam makes Muslims skeptical

      April 21, 2023
    • UX

      The role of artificial intelligence in improving the user experience in online casinos.

      May 3, 2023

      Microsoft enhances user experience with Windows 11 ‘smart opt-out’ and improved emergency notifications

      May 3, 2023

      Nigeria’s Nestcoin Launches New Digital Financial Platform For Africans

      May 3, 2023

      ibi WebFOCUS 9.2 is ready for Modern Business Intelligence, the Cloud, and Driving User Experience – PCR.

      May 3, 2023

      Snapchat’s ‘My AI’ chatbot raises concerns about student privacy and user experience

      May 3, 2023
    • Web Builders
      1. Web Design
      2. View All

      18-Wheeler Accidents: Fatalities and Injuries

      May 6, 2023

      What Comes First in Website Development — Design or Copy?

      February 2, 2023

      Modern Campus Honors Best Higher Education Websites of 2022

      February 2, 2023

      Premier SEO Consultant in Las Vegas, Nevada with Unparalleled Customer Service

      February 2, 2023

      Creating and Adding a Google Account: A Step-by-Step Guide

      May 2, 2023

      How i Create New Google Account

      February 7, 2023

      CWT powers tools for meeting and event planners

      January 31, 2023

      Best Website Builder – Website Builders

      January 24, 2023
    • WordPress

      1Password puts users at ease after the horror of password change notifications

      May 3, 2023

      Samsung Galaxy S23 FE could feature a 50MP main camera, but we may have to wait until then

      May 3, 2023

      Titanfall director says Respawn is ‘looking forward to something new’

      May 3, 2023

      Netflix users cancel subscriptions amid growing feud over writers’ strike

      May 3, 2023

      Businesses Are More Prepared Than Ever For Cyberattacks, But Still Not Confident

      May 3, 2023
    • Realtoz
      • Our Other Sites
    • More News
    Best Website Builders CompanyBest Website Builders Company
    Home»JavaScript»How to create JSON array with values ​​in DOM(HTML TABLE) when button is clicked using JQuery/Javascript? – JavaScript – SitePoint Forum
    JavaScript

    How to create JSON array with values ​​in DOM(HTML TABLE) when button is clicked using JQuery/Javascript? – JavaScript – SitePoint Forum

    websitebuildersnowBy websitebuildersnowMay 1, 2023No Comments4 Mins Read
    Facebook Twitter LinkedIn Telegram Pinterest Tumblr Reddit WhatsApp Email
    Share
    Facebook Twitter LinkedIn Pinterest Email

    [ad_1]

    I need to save/batch update all rows whose input or select element contains class bg-warning or click a button to save all rows whose id contains ‘trScholar_evt’ . I would like to create a JOSN array in the following format using JavaScript or jQuery. My JSON array contains information about rows and all columns.

    //Need a JOSN array in the following format 
    
    const data = 
    [
      {
        "row_ID": "trScholar_11085716",
        "row_Data_Attributes": [{"recordid": "11085716", "ownerid": "7147119"}],
        "row_Class": "",
        "columns": [
          {
            "column_Header":"Unique Identifier",
            "column_ID":"scholarUniqueID_11085716",
            "column_Class": "scholarUniqueID col-id-num",
            "column_Value":"11085716"
          },
          {
            "column_Header":"Scholar Last Name",
            "column_ID":"scholarLastName_11085716",
            "column_Class": "dataInput scholarLastName",
            "column_Value":"Conway"
          },
          {
            "column_Header":"Scholar First Name",
            "column_ID":"scholarFirstName_11085716",
            "column_Class": "dataInput scholarFirstName",
            "column_Value":"Aaron"
          },
          {
            "column_Header":"Status of Scholar Activit",
            "column_ID":"activityStatus_11085716",
            "column_Class": "activityStatus",
            "column_Value":"Draft"
          },
          {
            "column_Header":"Grant Fiscal Year",
            "column_ID":"grantFiscalYear_11085716",
            "column_Class": "dataInput grantFiscalYear bg-warning",
            "column_Value":"2019"
          },
          {
            "column_Header":"Status",
            "column_ID":"select_status_11085716",
            "column_Class": "dataInput select_status",
            "column_Value":"Active"
          },
          {
            "column_Header":"Scholar E-mail",
            "column_ID":"scholarEmail_11085716",
            "column_Class": "dataInput scholarEmail",
            "column_Value":"aaron.conway@downstate.edu"
          },
          {
            "column_Header":"Scholar Phone",
            "column_ID":"scholarPhone_11085716",
            "column_Class": "dataInput scholarPhone",
            "column_Value":"315-263-7593"
          },
          {
            "column_Header":"Scholar Gender",
            "column_ID":"select_scholarGender_11085716",
            "column_Class": "dataInput select_scholarGender",
            "column_Value":"Male"
          },
          {
            "column_Header":"Race",
            "column_ID":"select_scholarRace_11085716",
            "column_Class": "dataInput select_scholarRace",
            "column_Value":"Black or African American"
          },
          {
            "column_Header":"Multiple Races",
            "column_ID":"sscholarMultiRace_11085716",
            "column_Class": "dataInput scholarMultiRace",
            "column_Value":"Asian"
          },
          {
            "column_Header":"Ethinicity",
            "column_ID":"select_scholarEthinicity_11085716",
            "column_Class": "dataInput select_scholarEthinicity",
            "column_Value":"Not Hispanic or Latino or Spanish Origin"
          },
          {
            "column_Header":"Home State",
            "column_ID":"select_scholarState_11085716",
            "column_Class": "dataInput select_scholarState",
            "column_Value":"NY"
          },
          {
            "column_Header":"Academic Level",
            "column_ID":"select_undergraduateGraduate_11085716",
            "column_Class": "dataInput select_undergraduateGraduate",
            "column_Value":"Doctoral"
          },
          {
            "column_Header":"Major Studies",
            "column_ID":"select_majorStudies_11085716",
            "column_Class": "dataInput select_majorStudies",
            "column_Value":"Anesthesia"
          },
          {
            "column_Header":"If other, identify Major Study",
            "column_ID":"otherMajorStudy_11085716",
            "column_Class": "dataInput majorStudies",
            "column_Value":"Medicine"
          },
          {
            "column_Header":"Future Focus Area",
            "column_ID":"select_futureFocusArea_11085716",
            "column_Class": "dataInput select_futureFocusArea bg-warning",
            "column_Value":"Dentistry"
          },
          {
            "column_Header":"if other, identify Future Focus Area",
            "column_ID":"inputFutureFocusArea_11085716",
            "column_Class": "dataInput futureFocusArea",
            "column_Value":"Test future Focus Area"
          },
          {
            "column_Header":"Intended Specialty",
            "column_ID":"select_intendedSpecialty_11085716",
            "column_Class": "dataInput select_intendedSpecialty bg-warning",
            "column_Value":"Allergy and immunology"
          },
          {
            "column_Header":"if other, identify Intended Specialty",
            "column_ID":"inputIntendedSpecialty_11085716",
            "column_Class": "dataInput intendedSpecialty",
            "column_Value":"Test Intended Specialty"
          },
          {
            "column_Header":"Full Time or Part Student",
            "column_ID":"select_FullTimePartTime_11085716",
            "column_Class": "dataInput select_FullTimePartTime bg-warning",
            "column_Value":"Full Time"
          },
          {
            "column_Header":"Intended Profession",
            "column_ID":"txtIntendedProfession_11085716",
            "column_Class": "dataInput txtIntendedProfession bg-warning",
            "column_Value":"Test Intended Profession"
          },
          {
            "column_Header":"Degree Awarded",
            "column_ID":"txtDegreeAwarded_11085716",
            "column_Class": "dataInput txtDegreeAwarded bg-warning",
            "column_Value":"Test Degree Awarded"
          },
          {
            "column_Header":"2019 Scholarship Amount Awarded",
            "column_ID":"2019scholarshipAmount_11085716",
            "column_Class": "dataInput 2019scholarshipAmount bg-warning",
            "column_Value":"100"
          },
          {
            "column_Header":"2020 Scholarship Amount Awarded",
            "column_ID":"2020scholarshipAmount_11085716",
            "column_Class": "dataInput 2020scholarshipAmount bg-warning",
            "column_Value":"200"
          },
          {
            "column_Header":"2021 Scholarship Amount Awarded",
            "column_ID":"2021scholarshipAmount_11085716",
            "column_Class": "dataInput 2021scholarshipAmount bg-warning",
            "column_Value":"300"
          },
          {
            "column_Header":"2022 Scholarship Amount Awarded",
            "column_ID":"2022scholarshipAmount_11085716",
            "column_Class": "dataInput 2022scholarshipAmount bg-warning",
            "column_Value":"400"
          },
          {
            "column_Header":"Amount Awarded to Date",
            "column_ID":"scholarshipAwardforAcademicYear_11085716",
            "column_Class": "dataInput scholarshipAwardforAcademicYear",
            "column_Value":"21000"
          },
          {
            "column_Header":"School Attended",
            "column_ID":"schoolAttended_11085716",
            "column_Class": "dataInput schoolAttended",
            "column_Value":"State University of New York Downstate Medical Center College of Medicine"
          },
          {
            "column_Header":"School City",
            "column_ID":"schoolCity_11085716",
            "column_Class": "dataInput schoolCity",
            "column_Value":"Brooklyn"
          },
          {
            "column_Header":"School State",
            "column_ID":"select_schoolState_11085716",
            "column_Class": "dataInput select_schoolState",
            "column_Value":"NY"
          },
          {
            "column_Header":"Year of Graduation",
            "column_ID":"yearofGraduation_11085716",
            "column_Class": "dataInput yearofGraduation",
            "column_Value":"N/A"
          },
          {
            "column_Header":"Anticipated Year of Graduation",
            "column_ID":"anticipatedYearofGraduation_11085716",
            "column_Class": "dataInput anticipatedYearofGraduation",
            "column_Value":"2022"
          }
        ]
      }  
    ]
    
    

    unique identifier

    scholar’s surname

    scholar’s name

    Activities of scholars

    Grant year

    Status

    scholar email

    scholar phone

    scholar’s gender

    Race

    multiple races

    Ethnicity

    home state

    academic level

    Main research

    Otherwise, identify the main study

    Priority areas for the future

    If other, please identify future focus areas

    Area of ​​specialization

    Otherwise, identify the intended specialization

    full-time or part-time student

    Target occupation

    conferment of degrees

    2019 Scholarship Amount

    2020 Scholarship Amount

    2021 Scholarship Amount

    2022 Scholarship Amount

    Amount awarded to date

    attending school

    school city

    school status

    year of graduation

    Expected graduation year

    11085716 draft X
    X

    “““

    [ad_2]

    Source link

    Share this:

    • Tweet
    • More
    • WhatsApp
    • Print
    • Share on Tumblr
    • Mastodon
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Telegram Email
    Previous Article‘Zero Leads’: Dragnet Continues for Man Sought in Fatal Shooting of 5 in Texas
    Next Article The place where property prices are set by what locals earn
    websitebuildersnow
    • Website

    Related Posts

    Fake ChatGPT extension to steal victim’s account details

    May 2, 2023

    What to expect from ECMAScript 2023 (ES14)

    May 2, 2023

    Which one is right for your project?

    May 2, 2023
    Add A Comment

    Leave a Reply Cancel reply

    Post Your Ad Free
    Advertisement
    Demo
    Top Posts

    Subscribe to Updates

    Get the latest sports news from SportsSite about soccer, football and tennis.

    This website provides information about CSS and other things. Keep Supporting Us With the Latest News and we Will Provide the Best Of Our To Makes You Updated All Around The World News. Keep Sporting US.

    Facebook Twitter Instagram Pinterest YouTube
    Top Insights

    18-Wheeler Accidents: Fatalities and Injuries

    May 6, 2023

    The Particular Magic of Chicken, Egg and Rice

    May 3, 2023

    Tori Bowie: American three-time Olympic medallist and ex-world champion dies aged 32

    May 3, 2023
    Get Informed

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    © 2023 bestwebsite-builders. Designed by bestwebsite-builders.
    • Home
    • About us
    • Contact us
    • DMCA
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.

    x