Onchange Does Not Work For Datetimepicker In Struts 2
I have the following piece of code : But for this the
Solution 1:
Dojo tags are deprecated. Use jQuery tags. You can find more about struts2-jquery-plugin. You should use datepicker tag.
<%@ taglib prefix="sj" uri="/struts-jquery-tags" %>
<head>
<link href="<s:url value="/css/template_styles.css"/>" type="text/css" >
<sj:head jqueryui="true" />
<title></title>
</head>
<script type="text/javascript">
$.subscribe('changeTopic', function(event,data) {
alert('Date : '+event.originalEvent.dateText);
});
</script>
<sj:datepicker name="dateOfBirth" id="dateOfBirth" label="DOB" displayFormat="dd/MM/yy" onChangeTopics="changeTopic"/>
Post a Comment for "Onchange Does Not Work For Datetimepicker In Struts 2"