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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:40:14+00:00 2026-06-17T16:40:14+00:00

i have a variable in jquery. first am adding some values to it. now

  • 0

i have a variable in jquery. first am adding some values to it.
now again am adding some more values to existing variable.
here is my code. if any one know help me……

var eventToAdd = {
                        title: $("#txtSubject").val(),
                        description: $("#addEventDesc").val(),
                        start: $("#txtStartdate").val(),
                        end: $("#txtEnddate").val()
                    };
                    var ChkBox = document.getElementById("rbtnHourly");
                    if (ChkBox.checked == true) {
                         **eventToAdd = {**
                            FREQ: "Hourly",
                            INTERVAL: $("#updown").val(),
                            BYSETPOS: "",
                            BYDAY: "",
                            BYMONTH: "",
                            BYMONTHDAY: ""
                        };
                    }
                    var ChkBox = document.getElementById("rbtnDaily");
                    if (ChkBox.checked == true) {
                        var rbtnEveryday = document.getElementById("rbtnEveryday");
                        if (rbtnEveryday.checked == true) {
                            **eventToAdd  = {**
                                FREQ: "Daily",
                                INTERVAL: $("#TextBox1").val(),
                                BYSETPOS: "",
                                BYDAY: "MO,TU,WE,TH,FR,SA,SU",
                                BYMONTH: "",
                                BYMONTHDAY: ""
                            };
                        }
                        else {
                           **var eventToAdd1 = {**
                                FREQ: "Daily",
                                INTERVAL: 1,
                                BYSETPOS: "",
                                BYDAY: "MO,TU,WE,TH,FR",
                                BYMONTH: "",
                                BYMONTHDAY: ""
                            };
                        };
                    }
  • 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-17T16:40:15+00:00Added an answer on June 17, 2026 at 4:40 pm

    I’m not entirely sure what you are asking but take a look at jQuery.extend()

    http://api.jquery.com/jQuery.extend/

    This enables you to extend an object with other values

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

Sidebar

Related Questions

For one of my first ventures into JQuery, I have the very simple goal
I have a variable with a jQuery collection in it, like this: $collection =
I have declared this variable in jquery var enabled = false; I want to
I have two variables in a jquery code and if item.a not exist, it
I've been writing some jQuery functions that have JavaScript variables and looping, etc inside
I'm trying to build my first jQuery plug-in yet it's proving to be more
I have a jQuery slideshow code that works fine with the following HTML structure:
I have a JavaScript variable: var s = <html><head><style>body{a:b;c:d}</style></head><body></body></html>; First, I am extracting the
As it stands, I have some JQuery along these lines - ph=function(i){ $.each(i,function(po){ id=po.id;url=/+id;t=$('<div
i have many forms on one page. i'm using jquery and ajax to update

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.