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

  • Home
  • SEARCH
  • 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 8116223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:45:05+00:00 2026-06-06T03:45:05+00:00

I have this follow code in my javascript. I call this function when the

  • 0

I have this follow code in my javascript.

I call this function when the user click in a specific checkbox and then I just change the image of this checkbox.

the problem is that my ExportaZap are accessed just one time, for example, if a click now in my checkbox, I call ExportaZap.ashx and then change the image of this checkbox. If a click again, he don’t pass through my ExportaZap.ashx.

How can I do to call ExportaZap ever than my user click on my checkbox using the function below ?

    function Visibilidade(id, imagemBaixa, credenciada) {
            $.get("../Action/ExportaZap.ashx", { id: id, imagemBaixa: imagemBaixa, credenciada: credenciada }, function (data) {
                if (data != "limite") {

                    if ($("#" + imagemBaixa).attr("src") == "../tema/default/images/CheckVerde.png") {
                        $("#" + imagemBaixa).attr("src", "../tema/default/images/CheckCinza.jpg");
                    }
                    else if ($("#" + imagemBaixa).attr("src") == "../tema/default/images/CheckCinza.jpg") {
                        $("#" + imagemBaixa).attr("src", "../tema/default/images/CheckVerde.png");
});
}
  • 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-06T03:45:07+00:00Added an answer on June 6, 2026 at 3:45 am

    Something like this should do the trick:

    $(document).ready(function(){
        $('input[type=checkbox]').click(function(){
            Visibilidade(this.id, imagemBaixa, credenciada);
        });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Follow up to this question . I have the following code: string[] names =
I have defined two classes in javascript as follows. function ParentClass(){ this.one = function(){
I have this javascript routine for ajax call, which works for the most part.
This is a follow-up question, but I'll include the code from before. I have
I have a bunch of python methods that follow this pattern: def delete_session(guid): conn
I have started using Simple-form and Bootstrap and I have tried to follow this
I'm a beginner with Json, I follow this tutorial the example I have written
this is a follow-up question of mine. Suppose now I have a URL :
I have a follow-up question to this one . I created a new form,
I have a follow up question to this question . Is it possible to

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.