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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:15:00+00:00 2026-05-31T07:15:00+00:00

I want to update the value from a input/textfield with a calculated value from

  • 0

I want to update the value from a input/textfield with a calculated value from the cookie.It’s like a mini local cookie cart.
Saving and retrieving the json from the cookie is a piece of cake.
In my behavior I fail to make the following work:

I added a class for every node in the input field, it’s constructed like the example below.

Myid = 'webform_cart_nid_10';
formElement = $('.' + Myid);
console.log(formElement);

The html is quite nested and can be seen http://it2servu.be/broodjes/bestellen (if I may link?) .
the field whose value I want to update looks like this:

<input class="webform_cart_nid_10 webform_cart_nid form-text" type="text" id="edit-submitted-cart-item-cart-elements-10" name="submitted[cart_item][cart_elements][10]" value="0" size="3" maxlength="128">

Is contained in drupal output with severe div-itis.

    <div class="page clearfix" id="page">
     <div id="section-content" class="section section-content">
      <div id="zone-content-wrapper" class="zone-wrapper zone-content-wrapper clearfix">  
       <div id="zone-content" class="zone zone-content clearfix container-12">    
        <div class="grid-12 region region-content" id="region-content">
         <div class="region-inner region-content-inner">
          <div class="block-inner clearfix">
           <div class="content clearfix">
            <div class="node node-webform node-promoted view-mode-full clearfix ">
             <div class="field field-name-title field-type-ds field-label-hidden">
               <form class="webform-client-form" enctype="multipart/form-data" action="/broodjes/bestellen" method="post" id="webform-client-form-5" accept-charset="UTF-8">
                <div>
                 <fieldset class="collapsible form-wrapper collapse-processed" id="edit-submitted-cart-item-cart-elements">
                  <div class="fieldset-wrapper">
                   <div class="form-item form-type-textfield form-item-submitted-cart-item-cart-elements-10">
                    <input class="webform_cart_nid_10 webform_cart_nid form-text" type="text" id="edit-submitted-cart-item-cart-elements-10" name="submitted[cart_item][cart_elements][10]" value="0" size="3" maxlength="128">
...

probably it’s something stupid, I just can’t figure out what it is?

  • 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-31T07:15:01+00:00Added an answer on May 31, 2026 at 7:15 am

    Your problem is with jQuery. If you pop open the console in Chrome and type jQuery, it returns the jQuery function. If you type $ it returns undefined. You have some sort of collision causing $ not to be set to jQuery.

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

Sidebar

Related Questions

basically i want to hold a parameter that retrieve value from $.post() call like
I want to reset the value of local storage form a from that user
I want to pass a value from one Activity to another to update an
I want to always update the value of an update row in the database.
I want to update a column by adding a new value alongside the old
Often I want to add a value to a table or update the value
I want to update two columns in a table. The value of the second
I see various ways to update a input field from a select box but
I have some input fields like below: <input type=text name=date_1 class=dataList value=2009-12-30 /> <input
I want to convert a large 64 bit value from decimal or hex string

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.