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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:30:48+00:00 2026-05-26T16:30:48+00:00

I am making an application using jQuery. In my app, the user enters some

  • 0

I am making an application using jQuery. In my app, the user enters some input like:
“We are going to party”
and when he clicks on the convert button, the result should be:
“V R GNG 2 PRTY”.

But in my code, I am getting only last value as a result.

The code is at pastebin.com/NWMavENb.
I want the result to be “V R GNG 2 PRTY”.Here is my page you can download http://www.mediafire.com/?cj5lz68di25dzx22 this page.

  • 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-26T16:30:48+00:00Added an answer on May 26, 2026 at 4:30 pm

    You are simply changing the value every time, so only the last value is stored. You need to keep track of the value and append to it.

    Here is one way

    if(words[i]=="Are"||words[i]=="are"||words[i]=="ARE")
    {
        $("#cnvalue").val($("#cnvalue").val() + " R");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a third-party application, and making a call to create an instance
I am making an ajax request using JQuery that looks like this: var data
I'm making very simple ROR (rails 2.3.5) application and using jQuery plugin jRails. The
In an application where I am making cross-domain JSONP requests (using jQuery), when the
I'm making a webapp and I'm using jQuery. I've made a simple android application
I'm currently making a jQuery Mobile application and using Phone Gap to deploy to
I'm making application. I am using JQuery, that retrieves data from MySQL database using
Okay im making a mobile application using jquery, and then im using phonegap to
I am making a RIA application using Silverlight and web services. The method of
Using J2SE, I tried making a LAN application using java.net.*, and it worked perfectly.

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.