Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stripe class for div

I have a long list of multiple div... let's say 20 div

All wrap in another one..

<div id="main">
 <div class="xyz"> text text </div>
 <div class="xyz"> text text </div>
 <div class="xyz"> text text </div>
 <div class="xyz"> text text </div>
 <div class="xyz"> text text </div>
.... etc
</div>

i like to add class "grey" in one out of two div and make it zebra ! jquery please !

like image 375
menardmam Avatar asked Dec 13 '10 15:12

menardmam


People also ask

Is stripe elements an iframe?

The element is an iframe, which is another window, which has its own window object and document object. The parent page cannot access these objects, unless the iframe is in the same origin.

What is card element in stripe?

Stripe Elements is a set of prebuilt UI components for building your web checkout flow. It's available as a feature of Stripe.js, our foundational JavaScript library for building payment flows. Stripe.js tokenizes sensitive payment details within an Element without ever having them touch your server.

How do you customize your stripe elements?

In addition to themes , variables and rules , we have provided additional appearance configuration options to style Elements. You can customize these by adding them to the appearance object: const appearance = { labels: 'floating', // other configurations such as `theme`, `variables` and `rules`... }

How does Stripe Elements work?

Use Stripe Elements, our prebuilt UI components, to create a payment form that lets you securely collect a customer's card details without handling the sensitive data. The card details are then converted to a representative Token that you can safely send to your servers.


1 Answers

$('.xyz:odd').addClass('grey');

Do mind that 'grey' is not a semantic classname. Better call id 'odd' or 'zebra' or something. If you'd make up your mind and change the odd color to blue your classname would be real strange :P

like image 122
Stephan Muller Avatar answered Sep 17 '22 19:09

Stephan Muller