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
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
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
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
I want to create a div and set the opacity to 0 with css(background, color, border) so completely invisible and the whole thing will only work if js enabled. There is another div next to it, and want to use jQuery to change the opacity to 1 and chang
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
I have to add a div element to a page after a particular option in the select box is selected. How can I do it using jQuery? I am trying to use the onClick event but it doesn't works. <div class="col-xs-7"> <label for="sel1"&g
I have this JSFiddle as a test, http://jsfiddle.net/kahanu/7ctjcv4y/2/ Essentially I have this HTML: <div class="doc-section" data-title="One"></div> <div class="doc-section" data-title="Two"></
I have a php function that has an array of all of these interest selections for users to choose from. I populate that data like so in a table: foreach($interests as $key=>$value){ ?> <input type="checkbox" name="targetInterests&quo
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: http://railmedia.ro/test/ I am tryi
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
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
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
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="http://code.jquery.com/jquery-1.4.min.js" type=&q
I need to remove all of the options in a dropdown that don't have a specific value. Here's my code: ` <select name="worker"> <option value="0">John Doe</option> <option value="5">Jim Smith</option&g
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
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
This question already has an answer here: How do I pass JSF managed bean properties to a JavaScript function? 3 answers Can anyone tell me how to get the managed bean property value inside the javascript method something like function fonction1() { v
I got this code from stackoverflow which looks like a pretty good "select all" checkbox solution, any ideas why it fails after 2nd click? http://jsfiddle.net/R9zjk/2/ <table> <tr> <td> <input type='checkbox' value='0' class=
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
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
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
The autocomplete is outputting data in this format: <ul class="ui-autocomplete ui-menu ui-widget ui-widget-content ui-corner-all"> <li class="ui-menu-item"> <a class="ui-corner-all">item 1</a> </li&
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
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
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
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
I want to insert text field values to database using javascript jQuery AJAX call to C# server method. Problem is that AJAX call run successfully but C# is not updating the database. What could be the reason? Please reply soon. ASP code is giving belo
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
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 plipl.com site's home page (www.plipl.com) . Is there any easy way to do this with jQuery ?T