I have older versions of jquery installed on my page that uses the draggable/droppable elements but I want to use recent versions of bootstrap and jquery to implement modals on the same page. When I add a link to the recent versions to my page all of the draggable/droppable elements stop working. How can I use newer versions of jquery along with older versions?
I googled this problem and implemented some of the jQuery code provided but nothing worked. How do I get my datepicker to show up in front of the dropdown?
<div id="showMe4" style="display: none;">lorem ipsum dolor amet</div>
This only renders the last showMe element, id="showMe4", so it prints out "lorem ipsum dolor amet." If you click on any of the tiles, it returns just the last showMe div.
I have a CSS transition that I want to loop infinitely. I put it on plunkr but it doesn't loop there at all. You would have to create a Web page from the plunkr in order to see it loop. Here is the plunkr:
I want the rotate buttons to be on top of the submit button but when I put the rotate buttons on top and then click to rotate the form submits prematurely. Here is my plunker:
I have a click function that works for one of my anchor tags but I want it to work for two (or more). When I click on the anchor with id get-data-1 it displays the json file microLesson1.json for the div with class quiz-list-1. I want it to display the json file microLesson2.json when I click on the anchor with id get-data-2 as well.
I have a modal on my web site and it doesn't work on a tablet. When I double-click the modal it justs zooms in and doesn't display the modal. How do I make my modal work on a tablet?
I want to set the data-max of my progress bar to zero but doing this causes the progress bar to count 'til infinity (100 divided by zero). How can I set my progress bar to zero?
I created an animated progress bar but it doesn't work as hoped for. I want 20% of the bar to show up but 100% of the bar shows up instead. It does however show the percentage correctly.
I link to jquery and modernizr.
Here is my javascript
$(document).ready(function() {
if(!Modernizr.meter){
alert('Sorry your brower does not support HTML5 progress bar');
When my email doesn't validate I want to add the red border from the class focus and an X mark from the pseudo-element before. The code shows the red border but it doesn't show the X mark. How do I add the pseudo-element to my text box?
I want to make a large box into a form element. When the box is selected it should be submitted to the form. How do I change a div into a form element?
If you hover over the images at http://quinnmoore.com you
will notice that there is a slight delay as if it is stuttering. How
can I get rid of this stutter effect and see it hover over more
smoothly? Thanks in advance.
If you drag a meal tile to the right side of the page then it should stay there after you click on <a href="/mealplans/add">Go back to list of meal tiles</a> but of course it doesn't because the entire page gets refreshed. I tried adding an anchor for just the mealplan tiles (like a back to top button) but still the entire page gets refreshed. I can't think of any way to do this with jquery, javascript or php. Any ideas? You're supposed to be able to add tiles from the 500 calorie list and then for example the 300 cal list. Right now I only have 500 calorie tiles but you can see how it's supposed to work. This was made with the cakephp framework but it's principally the same as for a normal website.
The problem with Cakephp though is that it seems to have only one ajax.ctp file for all of the loads so I can't make 8 separate messages, one for each tile collection. How do I load for example the CTP called test without using the same ajax.ctp file as for the other ones? I need a separate ajax.ctp for every callback.
I'm trying to add all of the calorie contents in my javascript like this:
total = parseFloat(myInt1 + myInt2 + myInt3);
$('#response').append(total);
Instead of adding the variables they get concatenated. I've tried using parseInt, parseFloat, and Number but I still just get concatenation and not addition. Please look at the view source at http://maureenmoore.com/momp_112412/121912_800.html
I use $.post to send the divs to the php file process.php and it gives me 1 to 3 arrays depending on how many divs I dragged instead of just one combined array. I want to push the $_REQUEST object (i.e., the dropped div) into an array using
$stack = array();
foreach ($_REQUEST as $key => $value) {
array_push($stack,$value);
}
print_r($stack);
but it gives me 1 to 3 arrays each with the key of zero. How do I get one array out of for example 3 dragged divs?