Skip to content

Instantly share code, notes, and snippets.

@stanggt3
Last active August 29, 2015 14:02
Show Gist options
  • Save stanggt3/24c3829ed48f8e3be053 to your computer and use it in GitHub Desktop.
Save stanggt3/24c3829ed48f8e3be053 to your computer and use it in GitHub Desktop.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default2.aspx.cs" Inherits="mbsRewrite.backend.default2" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link href="/scripts/TestScripts/card/card.css" rel="stylesheet" />
<title></title>
<style>
.demo-container {
width: 350px;
margin: 50px auto;
}
form {
margin: 30px;
}
input {
width: 200px;
margin: 10px auto;
display: block;
}
</style>
</head>
<body>
<form id="form" runat="server">
<div>
<div class="demo-container">
<div class="card-wrapper"></div>
<div class="form-container">
<input placeholder="Card number" type="text" name="number" id="number" />
<input placeholder="Full name" type="text" name="name" id="name"/>
<input placeholder="MM/YY" type="text" name="expiry" id="expiry"/>
<input placeholder="CVC" type="text" name="cvc" id="cvc"/>
</div>
</div>
</div>
</form>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="/scripts/TestScripts/card/card.js" ></script>
<script type="text/javascript">
$('.form-container').card({ container: $('.card-wrapper') })
</script>
</body>
</html>
@luanmuniz
Copy link

Can you post the default.js here too?

@stanggt3
Copy link
Author

stanggt3 commented Jun 5, 2014

Updated with inline version to keep it simple

@luanmuniz
Copy link

Change $('.form-container') to $('#form')
This way will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment