Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
70
rated 0 times [  71] [ 1]  / answers: 1 / hits: 12160  / 11 Years ago, fri, december 27, 2013, 12:00:00

I'm trying to add daterange (https://github.com/eternicode/bootstrap-datepicker) select to my bootstrap 3 form.
I've added form element to my form:



<div class=form-group>
<label class=col-sm-3 control-label>Dates range</label>
<div class=col-sm-9>
<div class=input-daterange id=datepicker>
<input type=text class=input-small name=start/>
<span class=add-on>to</span>
<input type=text class=input-small name=end/>
</div>
</div>
</div>


But I get weird looking inputs:





I would like it to look as here.



How should I build my form to get this daterange to look nice? I would like to have those 2 inputs and to to be same width as other inputs and have same focus color.



Here is my form to play with: http://jsfiddle.net/Misiu/a3NV4/


More From » css

 Answers
0

See here example.



To work on Bootstrap 3
http://jsfiddle.net/a3NV4/4/



<div class=input-daterange id=datepicker>
<div class=input-group>
<input type=text class=input-small form-control name=start />
<span class=input-group-addon>to</span>
<input type=text class=input-small form-control name=end />
</div>
</div>


JS



$('.input-daterange').datepicker({});

[#49191] Thursday, December 26, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
austonjuancarlosb

Total Points: 238
Total Questions: 89
Total Answers: 99

Location: Chad
Member since Mon, Dec 5, 2022
1 Year ago
;