I am building an app that needs user input for a date and a hour of an event.I am using a form_for helper and get the values before f.submit.I am able to take the date correctly through the f.date_field that gives u a build in minicalendar and i am using a bootstrap clockpicker to get the hour.Here is the problem.I want to get the hour and concatenate it to f.date_field because it takes a default hour 00:00:00 UTC but i dont know how to do it.I am a beginner at Javascript .Any help would be appreciated. This is my code:
html with some ruby
<div class="input-group clockpicker" data-
placement="right" data-align="top" data-
autoclose="true">
<input id ="time1" type="text" class="form-control"
value="ώρα..">
<span class="input-group-addon">
<span class="glyphicon glyphicon-time"></span>
</span>
</div>
<br>
<div id="newgame">
<%= f.submit "New Game" %>
</div>
and here is my script for clockpicker
<script type="text/javascript" src="dist/bootstrap-
clockpicker.min.js"></script>
<script type="text/javascript">
$('.clockpicker').clockpicker();
</script>