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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:11:05+00:00 2026-05-16T15:11:05+00:00

I need to check the value of a particular variable alone from set of

  • 0

I need to check the value of a particular variable alone from set of variables using JQuery…..

This is my code

 return "{" + string.Format("IsPreviewed:'{0}',PreviewdUrl:'{1}',IsFreeVideo:'{2}'",
                             parameters[12],pranu,jithu) +"}";

The value will be returned to a function in a .Js file for ex: uploader.Js where i will store all these values in a variable.

From this variable i need to check whether the pranu variable contains a value like http://www.google.com ,jithu variable has a boolean value either true or false using JQuery

Can any one provide some ideas or sample coding to help me solve this task……

  • 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-16T15:11:06+00:00Added an answer on May 16, 2026 at 3:11 pm

    So, if I’ve understood correctly you just want to pull out the pranu variable from the string?

    var foo = "IsPreviewed:'1',PreviewdUrl:'www.google.co.uk',IsFreeVideo:'y'";
    
    var variable = "PreviewdUrl";
    
    // Get the start of the string, add 2 to gnore the preceeding :'
    var startIndex = foo.indexOf(variable) + variable.length + 2; 
    var endIndex = foo.indexOf(",", startIndex) - 1; // Remove the end '
    
    alert(foo.substring(startIndex, endIndex));
    

    Here’s a working example.

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

Sidebar

Related Questions

I need to check whether document element value is changed after particular operation using
I need to check If a column value (string) in SQL server table starts
I need to check a variable vi_theIndex for its value. At the given moment
I need to check if a particular value is there in a node list.
I need to set all select boxes to a particular value. Here’s the HTML:
I need to check the value of my birthdate input field. There should be
I need to check if an object contains any value. The following function works
I need to come up with a way to check for a specific value
I have a String Set attribute i.e SS in a dynamodb table. I need
I need to check a given byte or series of bytes for a particular

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.