Background / background image does not work?

I'm practicing building a Harley Davidson website and I've encountered a strange issue regarding 'background' and 'background-image'. A 404 type error keeps appearing in the console: (anonymous) @ jquery.min.js:2 i @ jquery.min.js:2 fireWith @ jquery

Error with jQuery on the AngularJS application

I'm trying to function this code But when I use it on my Angular app, I found some errors, and it seems to be jQuery var element=$('.cds'); //the problem is right here (angular.element('.cds') is the same) console.log(element.html()); //prints undefi

jqueryui autocomplete number of suggestions

I'm working with the jqueryUI autocomplete script. The thing is that I want to limit the number of suggestions it provides to 6, as it is offering too much suggestions. This is the script: $.get('file.txt', function(x) { var i; var pos = 0; var avail

How can I generate dates from a certain Gregorian year in Hijri

I want to make an auto adaptation or generation of days of year, from Gregorian to Hijri. I mean that you want to select or write the year as example: select 2015: Get all the days of 2015 in Gregorian and then its convert to Hijrim and present the l

Bootstrap tabs do not work with Firebug

Here's a small jQuery test program using Bootstrap 2.0 tabs. The peculiar thing is that if you run this in Firefox, it works just as expected. Though if you turn on Firebug, the tabs stop working! Is there some event handling that I'm missing? As you

How can I resize a div by dragging an image?

I have a slight problem here and maybe I can find someone who has dealt with this problem in the past. How can I resize a div while dragging an image? I'm using jQuery ui resizable and draggable. Here's a live URL: I am tryi

jQuery.find () does not work in the html variable

I have a very simple problem and keep finding answers to similar questions with more complexity. I am trying to replace image links in loaded html and decided that the best is to read the html into a string variable loadedHTML using .get(), like this

How can I loop this JSON?

I have the following JSON returned from a PHP script var data ={ "first thing" :["1","2"], "second thing" :["5","7"], "third thing" :["8","2"] }; I know that I can a

Wrap everything from certain div to certain div

I have a blog style layout in a cms so there are multiple instances of these divs. This is the structure: <div class="sfpostContent"> <p>Some text</p> random text <p>Some text</p> <div class="sfpostsList-img

Use JQuery Ajax to load the static html page into a div tag

I got this working but I need a default page showing before you choose one, how do I do this? Also is it possible to hide the page files? So it will not show when you View Source. <script src="" type=&q

CakePHP configuration of the dependent AJAX drop-down list

I have done a lot of research, tried to apply a few different examples but it seems that nothing really works. So I have the following 3 models: Customers, Projects and Events. Customers have many Projects and Projects have many Events. While creatin

How to get the 'getJSON' response header

I need to access the size of response message I am getting from another machine (cross-domain request) using $.getJSON, although I can see the request and response in chrome console, it does not work. Here is my request code: xhr=$.getJSON('http://19

select all the check boxes only works twice

I got this code from stackoverflow which looks like a pretty good "select all" checkbox solution, any ideas why it fails after 2nd click? <table> <tr> <td> <input type='checkbox' value='0' class=

Several radio buttons ajax post

I'm new in web programming and I really need your help. I have a form with several radio buttons and I want to insert them into mysql through an ajax post. I can do it for a single button but for more than one I don't have idea how to do it. This is

how to animate a bar chart from bottom to top?

I am trying to make a bar chart and the bar animates from top to bottom right now, but I want it to animate from bottom to top. How do I get it go from bottom to top? CSS .bar { width:50px; height:250px; list-style-type:none; } .bar p { background-co

Ajax error while running jQuery getJSON

I'm running this getJSON async call in jQuery to get the data back into and then out of my Java code. For whatever reason I continually get the error: "Ajax Error: Error invoking generateSearchQuery([object Object])" I've debugged both the jQuer

find the length of the visible / hidden list items faster

I am a jquery newbie and have been adding alert timestamps into my html file to find what lines of code are making things slow. I have found the main bottleneck and am looking for help to know how to change these 2 lines to be faster. My html file ha

Why does jQuery ignore the content of my div?

I have a simple toggle for a div attached to a chekbox. $('#step2').hide(); $('#toggle-check').click(function(){ $('#step2').fadeToggle(); }) Why won't .hide(); select my contents of #step2 ? It's currently a list of table data, and it isnt hiding it

Refreshing html height, body after adding content

i am appending content to the page on document load, after this I am using a light-box type overlay, the problem is that although the overlay is set to 100% height it only displays as high as the visible content, when you scroll down the overlay is n

Get the GET Query String in jQuery

suppose I have a form: <form id="someform" action="some.php" method="get"> <input type="text" name="somename" /> <input type="text" name="othername" /> ... <input i

jQuery equivalent of YUI StyleSheet Utility?

Does jQuery - or one of it's plugins - have equivalent functionality to the YUI StyleSheet Utility? "The StyleSheet Utility is capable of creating new stylesheets from scratch as well as modifying the existing stylesheets held as properties of elemen

Auto Slider / Scroller to display dynamic content

Can any one tell me how can i implement a auto slider/scroller in my web page. The slider should show dynamic data from a database. (Ex : Hot jobs tab in the site's home page ( . Is there any easy way to do this with jQuery ?T