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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:24:58+00:00 2026-06-03T14:24:58+00:00

I am using a onclick function that stores a character in $itemid=1; $storeid=3; $status=’rejected’;

  • 0

I am using a onclick function that stores a character in

 $itemid=1;
 $storeid=3;
 $status='rejected';

  <a class="blue" href="javascript:void(0);" onclick="status('.$itemid.','.$storeid.','.$status.')" >

But right now it shows an error in firebug

  rejected is not defined

  status(1, 3, rejected);

My feeling is that it should pass the string – rejected as

status(1,3,'rejected')

I have tried to represent the function as shown below

 onclick="status('.$itemid.','.$storeid.','".$status."')

but its not working… Can any one suggest a solution for this please..

  • 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-03T14:25:00+00:00Added an answer on June 3, 2026 at 2:25 pm

    This should work (note the backslash to escape the quote)

    <a class="blue" href="javascript:void(0);" onclick="status('.$itemid.','.$storeid.',\''.$status.'\')" >
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here 's the test site. I'm using a Javascript onClick event function to dynamically
I have a javascript function that I am calling from an image onClick event
I am using this JavaScript function in order to change image on click, but
I have a javascript function that creates an array and fill it with the
I recently learned that when using onclick, for a button, the field name and
Using Javascript and html: I have a list containing radio buttons that is dynamically
Beginners Javascript question here. I am trying to create a function that finds all
I am using a onclick function and adding a value to by paasing a
Yes ive been told a couple of time using onclick $('#linkId').click(function() instead of <a
I am trying to pass a JavaScript function with an onclick event in php.

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.