Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hijridatepicker repeating fields #8

Open
fawazmt opened this issue Nov 6, 2019 · 1 comment
Open

hijridatepicker repeating fields #8

fawazmt opened this issue Nov 6, 2019 · 1 comment

Comments

@fawazmt
Copy link

fawazmt commented Nov 6, 2019

How can I repeat date picker many times in the same page?
thank you

@balbarak
Copy link
Owner

balbarak commented Nov 7, 2019

You can use the below code

html

<div class="form-group">
    <label>
        Date
    </label>
    <div class="input-group">
        <input type='text' class="form-control" id="date1" />
    </div>
</div>
<div class="form-group">
    <label>
        Date
    </label>
    <div class="input-group">
        <input type='text' class="form-control" id="date2" />
    </div>
</div>
<div class="form-group">
    <label>
        Date
    </label>
    <div class="input-group">
        <input type='text' class="form-control" id="date3" />
    </div>
</div>

and in javascript use

 $(function () {
   
   $("#date1").hijriDatePicker();
   $("#date2").hijriDatePicker();
   $("#date3").hijriDatePicker();

});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants