<input type="text" class="m-dotted" id="#example1" onfocus = "$('#exampleModal1').arcticmodal()">
<div class="g-hidden">
<div class="box-modal" id="exampleModal1">
<input type="text" id="basic_example_1">
<input type="text" id="basic_example_3">
<br>
<button class="box-modal_close arcticmodal-close" id="close_button">OK</button>
</div>
</div>
$('#close_button').click(function(){
var date1 = $('#basic_example_1').val();
var date2 = $('#basic_example_3').val();
var date3 = date1 + ' - ' + date2;
$('#example1').val(date3);
var temp = $('#example1').val();
alert(temp);
});