<script> $(document).ready(function(){ $("#careerYears").val(<?php echo $model->careerYears;?>); }); </script>