I have an icon inside a list, id like to just be able to detect the double click on the icon - so i can delete the list, how is this possible (JQuerry Sortable)
$("#roleList").dblclick(function(e) {
var text = $(e.target).html();
$(e.target).fadeOut('slow', function() {
$("#deleteList").append(e.t...
I'm trying to figure out how I can count the number of div's inside the "bar" container then add the number as a class. For example in the first item class="bar 3" and the second class="bar 2"
<div class="item">
<div class="foo"></div>
<div class="bar">
<div class="slide"></div>
<div class="slide"></div>
<div class="s...
I've never written an if statement before.
I want the two slideframe divs to move when I click but only if the variable navi is not equal to zero, and then to set navi to 1 after the divs have moved:
$(document).ready(function(){
$("#one").click(function(){
if (navi !=0) {
$(".slideframe").animate({opacity: "0...
I have an unordered list <ul> with list items <li> which I'd like to be able to "reorder" via dragging. I'm using jQuery. How could I accomplish this? I tried hooking into the click event but I can't get the drag to work right (I want the other <li> elements to move out of the way once I drag an <li> element over a suitable spot so the u...
I need to copy a class data to a div, but without setting class name or with other class name.
for instance:
$('#blabla').addClass('xxx');
And then remove the class name but leaving the style data. The thing is that I need to set the style information but I can't set the class name because It gets conflicted with some other code.
...
I am using jQuery's .remove() to get rid of divs of content, but I would like to be able to have a confirmation or dialog box appear before it is removed. I am just not sure of the context of how I would write such a dialog.
$(".remove").click(function () {
$('div').remove('#item1');
});
Upon clicking the link with class remove I wo...
UPDATE:
It seems like it is blowing up on this line:
$('#ytplayerid').load('test.php?track=' + single);
the contents of test.php are:
<script type="text/javascript">
// <![CDATA[
// allowScriptAccess must be set to allow the Javascript from one
// domain to access the swf on the youtube domain
var params = { allowScr...
Howdy,
Is it possible to dispaly a web page fullscreen as if you had pressed f11? In chrome this gets rid of tool bars and everything. I'm using jQuery but I haven't been able to find info iff this is even possible.
Thanks for any help.
...
I'm using Highcharts (which are JS based charts) in conjunction with jQuery Sortable. Each chart is rendered within an <li> and sortable on the parent <ul> allows me to move them around. This works great in Firefox and Chrome.
In IE7, however, I get extremely weird behavior: The dragging works fine, but as soon as I drop it, the chart ...
I wrote the following jQuery plugin:
(function($){
$.fn.imageSlide = function(options){
$(this).imageSlide.nextSlide();
console.log("imageslide");
};
$.fn.imageSlide.nextSlide = function(){
console.log("nextslide");
$this = $(this);
};
})(jQuery);
Some background:
I want an image slider plugi...
Hello,
This is a css of a menu
<span id="menu2">Menu 2</span>
CSS for the above div
#menu2_submenu{
position:absolute; left:375px; top:35px; background-color:#111; height:50px; width:160px; color:#424242;
}
sub menu
<div id="submenu">
<div id="submenu1">submenu1</div>
<div id=...
Hello ,
i have this modified tablesorter and pager installed at :
tourscript.com/jqueryasp/room_numbers.asp
you could see both sorting and pager mess out ...
I have the same version of this but without pager located at
http://tourscript.com/jqueryasp/room_numbers2.asp#
in the second version the sort work fine ..
Does anybody know a wa...
I have two <select> elements. The first one contains countries (e.g. USA, Canada, England, Russia, Poland...) and the second one is hidden, containing cities from only USA and Canada (e.g. New York, Los Angeles, Chicago... OR Ottawa, Vancouver, Surrey...)
If the user selects Canada or USA from the first <select>, the second should show ...
Hi, I need to help to show wall posts from the friends of the logged in user, and the user himself ofc.. :P
I've searched on every coding forums, and google, did not find the answer I was looking for :/
The Session for the logged in user are:
$_SESSION['userid']
This is the MySQL Query I have so far:
SELECT DISTINCT * FROM status_up...
I have just started PHP and MySQL and have created a login form and all works well! Now I am looking to add ajax and the first method I considered is using the jQuery $.post method. I am okay with the code and here is a quick idea of what I will be doing:
function login(){
$.post('login.php', {
username:form.username.value,
...
I have a string:
var s = '<h1>heading</h1><p>para</p>';
and I want to remove the h1 element from it.
Ive tried:
$(s).remove('h1');
but s still contains the h1 element
Ive also tried:
s = $(s).remove('h1');
and
$('h1', s).remove();
and
$('h1', $(s)).remove();
etc etc etc
Any ideas?
...
Why doesn't the following code wrap the image with <li> tags and what would be the best way to do this?
var i = new Image
i.src = '/images/image.jpeg'
$(i).wrap('<li />')
$('div').html(i)
produces:
<div><img src="/images/image.jpeg"></div>
instead desired:
<div><li><img src="/images/image.jpeg"></li></div>
...
I have a "mytable" which contains "mytd" inturn contains the "Myspan" i want to get the
.I want to get the "myspan_1" in jquery .How do i do that.
Small try here
$("#mytable").find('td > #span').attr("value","myspan_+i");
where "i" is an incrementing value
I coud not get Span id .All iam trying "id" value of span tag
...
I have the following dynamic code. I want to put the position values "left" and "top" into variables. These values change as I drag this around the screen. What I would like to do is to store the last values so that when it gets destroyed, I can reuse the values to position it at the same place the next time.
<div onmouseover="setTimer...
im trying to pass new query to FlexiGrid using this code:
$('#fgAllPatients').flexReload({ query: 'blah=qweqweqwe' });
but when it goes back to the webservice, it simply gets the old parameter and this new one is neglected. help!
...