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

Change event invalid #95

Closed
ghost opened this issue Mar 18, 2018 · 0 comments
Closed

Change event invalid #95

ghost opened this issue Mar 18, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 18, 2018

I hope get the new value when datetimepicker input changed,but change event does not work.

valid

* focus.datetimepicker 
* blur.datetimepicker 

Invalid

change.datetimepicker 

My code:

<div class="input-group date" id="datetimepicker" data-target-input="nearest">
	<input type="text" class="form-control datetimepicker-input" id="date"
		   data-toggle="datetimepicker" data-target="#datetimepicker"/>
</div>
<script type="text/javascript">
	$(function () {
	   $('#datetimepicker').datetimepicker({
			locale: 'zh-cn',
			format: "YYYY-MM-DD",
			icons: {
				time: 'fa fa-clock',
			},
		});
		$("#date").on("blur.datetimepicker",function () {
				alert(666)
			}
		)
	});
</script>
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

1 participant