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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:50:33+00:00 2026-06-17T12:50:33+00:00

I have a span with paypal button. I must make this paypal button avialable

  • 0

I have a span with paypal button. I must make this paypal button avialable for pressing only after user confirms TOS. For this i think to lay over the span with the paypal button another div with unchecked checkbox, opacity and z-index. The user checks the checkbox and the layed over div gets such a z-index, so the span with paypal button will be over it and can be pressed.

I need something like

HTML

<div class="with_zindex">
    <input type="checkbox​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​">
<span class="here_is_paypal_button"></span>
</div>

CSS

.with_zindex{
background-color:#fafafa;
    opacity: .5;
    filter: alpha(opacity=50);
    -moz-opacity: .5;
z-index:1000;
}
.with_zindex + input[type=checkbox]:checked {
z-index:-1000;
}

But this don’t work for me (there are only given first formattings, which are not chenged by checking / unchecking checkbox).

  • 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-17T12:50:34+00:00Added an answer on June 17, 2026 at 12:50 pm

    Suggestion

    Instead, you can initially have the PayPal button disabled and you can enable it once the user clicks on the checkbox.

    HTML (jQuery Version)

    <input type="checkbox" name="terms" 
           onclick="$('#paypal').removeAttr('disabled');" />
    <input type="image" name="paypal" id="paypal" disabled="disabled" />
    

    HTML (JavaScript Version)

    <input type="checkbox" name="terms" 
           onclick="document.getElementById('paypal').removeAttribute('disabled');" />
    <input type="image" name="paypal" id="paypal" disabled="disabled" />
    

    Else if you insist on z-index:

    You need to give position: relative; for z-index to work. And there is no negative z-index!

    .with_zindex {
        background-color:#fafafa;
        opacity: .5;
        filter: alpha(opacity=50);
        -moz-opacity: .5;
        position: relative;
        z-index:1000;
    }
    .with_zindex + input[type=checkbox]:checked {
        position: relative;
        z-index: 0;
    }
    

    Your required answer

    HTML

    <div class="with_zindex">
        <input type="Checkbox" name="TOS" value="read">
        <span class="catItemExtraFieldsValue">
            <img src="http://gutgeordnet.de/reise/images/epaypal_de.gif">
        </span>
    </div>
    

    CSS

    .with_zindex {position: relative;}
    
    .with_zindex input[type=checkbox] {
        background-color:#fafafa;
        filter: alpha(opacity=50);
        position: absolute;
        z-index: 50;
        top: 10px;
        left: -35px;
        width: 135px;
        text-align: right;
        vertical-align: top;
        cursor: pointer;
    }
    
    .with_zindex input[type=checkbox] + .catItemExtraFieldsValue {
        position: relative;
        opacity: .5;
        -moz-opacity: .5;
        z-index: 45;
    }
    
    .with_zindex input[type=checkbox]:after {
        content: 'I accept';
        font-size: 14px;
        vertical-align: top;
        line-height: 1em;
        font-weight: bold;
        font-family: tahoma;
    }
    
    .with_zindex input[type=checkbox]:checked {position: static; display: none;}
    
    .with_zindex input[type=checkbox]:checked + .catItemExtraFieldsValue {
        position: static;
        background-color: transparent;
        opacity: 1;
        -moz-opacity: 1;
    }
    

    Fiddle: http://jsfiddle.net/praveenscience/35cQz/

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

Sidebar

Related Questions

I have contenteditable span with a max-width setting that allows the user to enter
I have a span element as follows: <span id=download>Download</span> . This element is controlled
I have a span like this: <span id="selectedTests" class="emrFG"> <span id="lblSelectedTests" class="emrHDR" style="top:3;left:6;font-size:8pt;">Selections</span> <span
I have this span that is in a loop and produce multiple results. what
I have a span tag in html and this <span> can appear multiple times
I have used the sandbox to get informations returned by Paypal IPN after a
I have a span like this <span class='class_name'> blah blah </span> I want to
Say I have a span that looks like this: <span> This is my string
I have a span tag that looks like this: <span ng-bind-html=item.Name | linky ng-click=open(item)></span>
I currently have a span tag which displays the onclick count for a button.

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.