I am using Jquery's animate() function to animate a div. When i give multiple effects like height 140 and width 200, then what happening is the the next effects starts only after the previous effect finish. I want to execute simultaneously. Plz help. Any help will be appreciated
Code:
$(document).ready(function(){
$...
how do we check whether a input box is visible or not....then store its state into variable to be outpu via alert ?
right now i'm using and i think it wrong. can any body help ?
<input type="hello" name="hello" value="" style="visibility:hidden"/>
function testhideinput(){
var $input_state = $('input:text[name=hello]').is(...
What whould be the best way to prevent multiple users on a page?
For example if a user is at the page "Home.aspx", no other users should be allowed to go there.
I'm using asp.net on the server and the js-frameword jQuery on the client side.
...
In some page, my side menu is created dynamically like this.
<div id="tree" class="treeview">
<ul><li><a href="Salg.asp" title="" class="">Salg</a></li>
<li><a href="Retur.asp" title="" class="">Retur</a></li>
<li><a href="Support.asp" title="" class="active">Support</a> </li>
<li><a href="konomi.asp" title="" class="">Økonomi</a></li>
...
I am using Jquery to paginate some divs on my page. At the moment the pagination shows as:
prev 1 2 3 4 5 6 7 8 9 next
How can I customize it to only show a previous and next button: prev next ?????
CODE:
// JavaScript Document
$(document).ready(function(){
//how much items per page to show
var show_per_page = 5;
//getti...
Im attempting to add voteup/votedown to one of my sites, however Im having a few problems:
Firstly here is my jQuery:
j(".voteup").click(function(){ // when people click an up button
j("div#response").show().html('<h2>voting, please wait...</h2>'); // show wait message
itemID = j(this).parent('div').attr('id');; // get post id
...
I saw a post earlier today and have been playing around with: http://arashkarimzadeh.com/index.php/jquery/7-editable-jquery-plugin.html
What I'd like to be able to do is when a span gets clicked, to fire the click event on a different element in the page:
<div class='editable sampleItem pointer' id='qqq'>click me!!!</div>
Is that pos...
Hi!
I've a div like this:
<div id="fade">
<p> A </p>
<p> B </p>
<p> C </p>
<p> D </p>
<p> E </p>
</div>
I want to fade every letter in that div, and the cycle should only repeat once.
That is it should start from 'A' and go till 'E' and then stop.
Is there any jQuery lib for that?
Edit:
Thanks for all your response...
I am using Jquerys ajax function to post data to my database. I have a textarea that allows users to type in their posts and update it to the database.
Here is a code snippet:
$.ajax({
type : "POST",
url: "process.php",
data: "postmessage="+ postmessage +"& from_user="+ from_user +"& from_username="+ from_username,
My pro...
I would like to select only one class from severals with the condition that the selected class has any div-descendant with the id "#exampleId".
I thought something like this could work, but it didn't:
$(".myClass").has(div).attr("id","#exampleId").
The second problem: I have to get rid first of the hash "#".
because the String (#exa...
is there a way to get safari not to show the "broken image" symbol, when an image was not found? firefox does this by default.
i'd preferrably do this with css, but i think javascript will be the way to go... i am using jquery already, eg something like this would be great:
$(document).ready(function(){
$('img').broken().hide();
})...
I have a searchlocationNear function for which i pass geocoded data i need to calculate distance based on lattitude and longitude values but during the alert functions of distance it displays undefined is their any problem with my code.
function searchLocationsNear(center) {
var radius = document.getElementById('radiusSelect').valu...
hi,
I am using jQuery 1.4 and jqGrid 3.8 beta ,
here i have used jqgrid table in which i wanted to create interface like excel sheet / spread sheet,
where number of blank rows will already be displayed and the user can enter record into table cells the why they used to enter in spread sheet.
well i have created empty editable rows by ...
Currently, I am using jquery to make a certain class/span editable:
$(function(){$('.test').editable({editClass:'tryThis',type:'textarea'})});
That works great. Now, what I would like to do is put the source into an iFrame (ID=iTarget).
How would I access this class now?
I tried:
$(function(){document.getElementById('iTarget').$('...
$('#element').draggable ({
stop: function () {
alert ('stopped');
//do some action here
}
}).trigger('stop');
nothing happens, thought #element is draggable now and event does execute after drag is complete. I tried .triggerHandle as well as 'dragstop' as eventtype, no luck
...
Hi,
I have written a script with jQuery.
It works with Firefox and GoogleChrome.
Only with IE I have this error returned:
'jQuery' is not defined jquery-ui-1.8.4.custom.min.js, Row 10 Character 1
This is the head of my page:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Contattaci...
I am using the DataTables jQuery plugin. The way I want my tables to work though mean I am passing a lot of parameters to the plugin to turn off things:
$('table.data').dataTable( {
'aoColumns': [
null,
{ 'bSortable': false },
{ 'bSortable': false },
{ 'asSorting': ['desc','asc'], 'sType': 'blanks' },...
I wasn't sure of the title, but I hope you will be able to help me.
I want to use kinda the same pattern that jQuery uses for their event handlers, like click/hover/blur etc, where you use this inside the event handler to get the object.
How do I accomplish this?
// The event handler
var handler = function() {
alert(this); // how...
I'm fairly new to jQuery and I am trying to switch image src attribute by getting the links from a select HTML tag.
This is the select HTML that I'm using:
<select id="pages">
<option value="Manga/Naruto/Friends/01.png">1</option>
<option value="Manga/Naruto/Friends/02.png">2</option>
<option value="Manga/Naruto/Friends/03.png"...
let's assume i have a div element, with static height and width
<div style="height: 500px; width: 300px;" id="scrollable">
how can i fix the moment, when mouse scrolls up on this div?
is there something like
$("#scrollable").scrollup(function()
{
console.log("scrolled");//???
});
Thanks
Update:
i'm sorry for not clearly as...