[eluser]Shiju S S[/eluser]
I tried
Controller:
Code:
Assets::add_css('flick/jquery-ui-1.8.13.custom.css');
Assets::add_js('jquery-ui-1.8.13.min.js');
View:
Code:
<input id="profile_d_estd" type="text" class="datepicker" name="profile_d_estd" maxlength="20" value="<?php echo set_value('profile_d_estd', isset($profile['profile_d_estd']) ? $profile['profile_d_estd'] : ''); ?>" />
Added script on top of the view page:
Code:
<$cript>
$(document).ready(function(){
$('[name=profile_d_estd]').datepicker({ changeMonth: true, changeYear: true });
});
</$cript>
But the date picker is not working. Please help