How to get value from liferay-ui:input-date to function in javascript ?How to get value from liferay-ui:input-date to function in javascript ?https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=133600782024-03-29T04:33:51Z2024-03-29T04:33:51ZRE: How to get value from liferay-ui:input-date to function in javascript ?Hitoshi Ozawahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=133694862012-04-08T13:35:08Z2012-04-08T13:35:08ZJust do this like I've shown you above:<br /><br />jQuery('#<portlet:namespace />day').Hitoshi Ozawa2012-04-08T13:35:08ZRE: How to get value from liferay-ui:input-date to function in javascript ?Amar Daulatkarhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=133649672012-04-07T20:59:05Z2012-04-07T20:59:05ZBut How to use jQuery to get value in variable of javascript i.e var day.Amar Daulatkar2012-04-07T20:59:05ZRE: How to get value from liferay-ui:input-date to function in javascript ?Hitoshi Ozawahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=133636722012-04-07T07:56:01Z2012-04-07T07:56:01ZWith jQuery, it can be accessed like below:<br /><br />jQuery('#<portlet:namespace />dayParam').Hitoshi Ozawa2012-04-07T07:56:01ZRE: How to get value from liferay-ui:input-date to function in javascript ?David H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=133610402012-04-06T22:51:12Z2012-04-06T22:51:12ZIf you view the source on the generated page, you'll see that all tag IDs are prefixed w/ namespace information. This helps to ensure you won't end up with field ID collisions on the final rendered phase (i.e. two different portlets use two different forms that just happen to want to use the ID "projectFromDate" or input fields w/ the same ID "name").<br /><br />When writing javascript code you either want to pass in namespaced IDs as function parameters or leverage some CSS selector magic to expose your particular form (i.e. give the elements a special class so you can write selectors to find the elements w/ the class).David H Nebinger2012-04-06T22:51:12ZHow to get value from liferay-ui:input-date to function in javascript ?Amar Daulatkarhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=133600772012-04-06T19:21:50Z2012-04-06T19:21:50ZHello<br /> I have to validate values getting from liferay-ui:input-date using javascript. But i don't know how to get values of liferay-ui:input-date in javascript.<br /><br /><liferay-ui:input-date<br /> formName="projectFromDate" <br /> monthParam="fromDateMonth"<br /> dayParam="fromDateDay"<br /> yearParam="fromDateYear"<br /> yearRangeStart="1990" <br /> yearRangeEnd="2012"><br /></liferay-ui:input-date><br /><br />&