Tag: Twitter Bootstrap
-
Twitter Bootstrap – Carousel Only CSS
Hey everyone, I ran into a bit of an issue today with my stylesheet conflicting with Bootstrap. After a bit of tinkering I realised that all I really needed from bootstrap were the Carousel styles. I’ve taken everything else out and included everything that’s left below: .carousel { position: relative; } .carousel-inner { position: relative;…
-
jQuery DateTimePicker with Bootstrap
Hey everyone, I ran into a bit of trouble today trying to get datetimepicker to work within bootstrap tabs. The dialog appeared however none of the buttons seemed to work. The fields also remained unpopulated. It turned out the the issue was caused by the fact that I’d used jquery’s clone function to duplicate the…
-
Remove Disabled Attribute – Twitter Bootstrap
Hey everyone, I was using Bootstrap’s disabled attribute today and just needed a way to remove it. Once again, jQuery has a quick and easy way to do this: $(‘#my_input’).removeAttr(‘disabled’); There’s a whole heap of documentation on the jQuery site: http://api.jquery.com/removeAttr/
-
Popover Function – Twitter Bootstrap
Just a quick post on how easy it is to implement a popover with twitter bootsrap: JavaScript: //Create tooltips for login/signup forms function create_tooltips(){ //Create vars var titles = [‘test title’] var contents = [‘test content’]; var fields = [‘#user_email’]; //Loop through each field and assign tooltip for(var i = 0; i < fields.length; i++){…