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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:19:27+00:00 2026-05-19T12:19:27+00:00

hi i am new at codeigniter. i want to change my div tag using

  • 0

hi i am new at codeigniter.
i want to change my div tag using jquery ajax.

  • 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-19T12:19:28+00:00Added an answer on May 19, 2026 at 12:19 pm

    As per your comment your current code seems to be like this –

    function submitVote(frmName){ 
      $.ajax({ 
       type: "POST",
       url: "<?php echo SITEURL; ?>/community/community/add_vote/?",
       data: "vote="+the_value+"&poll="+poll,
       success: function(msg){ 
        alert(msg);
       }
     }); 
    }
    

    First thing i would like to add is from where are you getting the the_value and poll valuesenter code here ? Because you have mentioned nowhere regarding this in your code.
    secondly there is no need to send ? in your url. Also the parameter frmName which you are taking in function is used nowhere.

    Your code can be modified to work properly as follows –

    function submitVote(frmName){ 
          $.ajax({ 
           type: "POST",
           dataType: 'text',
           url: "<?php echo SITEURL; ?>/community/community/add_vote/",
           data: "vote="+the_value+"&poll="+poll,
           success: function(msg){ 
            //i am assuming that from controller in msg you are sending the total number of votes to that particular entity after ending current vote.
            $('#div id where you have displayed your current vote count').html(msg);
           }
         }); 
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create secure cf using CodeIgniter. I'm new to using CodeIgniter. Is
I want to submit a form using jQuery in a CodeIgniter application. However, the
I am planning a new website with codeigniter using wordpress. this site will contain
I'm new to MVC (I'm using codeigniter) and was wondering where I should put
I am new to codeigniter. I want to know use of $CI =& get_instance();
EDIT: I am using Code Igniter: www.codeigniter.com So I'm new to web developement and
I'm new to codeigniter and building web applications using MVC. I'm trying to wrap
I'm developing an app using Codeigniter 1.7.3 (yes, I know there's a new version,
I am building a Facebook app using iframe rendering. I want to use CodeIgniter
I'm trying to write a sign up form using CodeIgniter and want to use

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.