Click here to Skip to main content
15,881,204 members

JQuery Zebra_Datepicker inside jquery lightbox_me

sayed farhan asked:

Open original thread
Is it possible to have a zebra_datepicker inside a lightbox_me popup i am using two plugin lightbox_me and zebra_datepicker. lightbox_me plugin for binding a input text box and zerbra_datepicker for calender control my html and jquery codes are follows

XML
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript" src="Scripts/main.js"></script>
<script type="text/javascript" src="Scripts/zebra_datepicker.js"></script>
<script type="text/javascript" src="Scripts/lightbox_me.js"></script>
<link href="Layout/zebra_datepicker.css" rel="Stylesheet" type="text/css" />

<script type="text/javascript" >
.popUp{

            border-radius:6px;
            -moz-border-radius: 6px;
            background: #FFFFFF;
            -webkit-border-radius: 6px;
            border: 1px solid #536376;
            -webkit-box-shadow: rgba(0,0,0,.6) 0px 2px 12px;
            -moz-box-shadow:  rgba(0,0,0,.6) 0px 2px 12px;
            padding: 14px 22px;
            width: 392px;
            height:173px;
            position: relative;
            display:none;
}

 </script>

</asp:Content>


XML
<input type="button" id="btnTest" class="button arrow" value="Test" />
<div id="divCalanderCheck" class="popUp">
    <input type="text" id="txtDate" class="datepicker" />
</div>



main.js

C#
$(document).ready(function () {
    $("#txtDate").Zebra_DatePicker();
        $('#btnTest').click(function () {

            $("#divCalanderCheck").lightbox_me({
                lightboxSpeed: 100,
                centered: true,
                closeClick: true,
                closeEsc: true
            });
});

    });
Tags: jQuery, ASP.NET

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900