The problem with Bootstrap modal object and remote data is, that data is not changed after loading first set. Here is a simple and wonderful solution for Bootstrap 3+ answer to the question “Twitter bootstrap remote modal shows same content everytime” $(‘body’).on(‘hidden.bs.modal’, ‘.modal’, function () { $(this).removeData(‘bs.modal’); });
Tag: jquery
jQuery Mobile: dynamically add ajax data
I was looking for a method to add data to jQuery Mobile page by simultanious AJAX requests. The problem was that after adding, css was not applied to the html code. So, the solution was found and here is the code: <input type=”search” name=”search” id=”search” data-mini=”true” /> <ul id=”list” data-role=”listview” data-inset=”true” data-add-back-btn=”true” data-split-icon=”check”> </ul> and… Continue reading jQuery Mobile: dynamically add ajax data
jQuery: stretch elements’ heigth
I have an unsorted list of elements with children. I wanted to make all the element stretch their height not counting on how much content is in there. There are some solutions which might be done using css, but all of them make layout too complicated and too many layers should be created to get… Continue reading jQuery: stretch elements’ heigth
Howto to fix height and width of prettyPhoto popup
I am using prettyPhoto for one of my projects. It is really wonderful plugin with lots of features. The only problem, which I met is that the popup window is resized according to the picture dimensions. This is pretty annoying, especially if you try to watch a big number of pictures. I solved this problem,… Continue reading Howto to fix height and width of prettyPhoto popup
положение иконки Jquery DatePicker
Я искал простой и легковесный выбор даты для одного моего проекта. Я нашел такой – jQuery date picker plug-in, разработанный Kelvin Luck (http://www.kelvinluck.com/). Он полностью подходил для моего проекта, за исключением одного аспекта – иконка помещалась после текстового ввода. Чтобы стало возможным помещать его перед текстовым вводом, я изменил немного плагин. И теперь нужно просто… Continue reading положение иконки Jquery DatePicker