I need to assign a custom property to a jQuery object. Here is the object:
var object = $("<div id='item'></div>");
I need object to have a custom data member. How can I add this?
Hello,
When the value is entered, I want an alert, its a copy/paste text box, using jquery
('#test).bind('onblur',function(){
var h = ('#test).attr('value');
alert(h);
});
<input type=text id=test>
Thanks
Jean
I'm looking for a way to trigger for a different function on each individual image. I'm using the Galleria Jquery plugin and have it set up on my site. The problem is i want to display a div with information depending on which image is loaded. I can't figure out how to capture which image is displayed and how to create a condition based on it.
I'm looking for a jquery muliple file upload plugin that allows files to be uploaded asynchronously without using flash.
I found this one , but the problem is it is based on flash.
Are there any plugins that meet my requirements?
Thanks .
I want to know is it possible to insert additional text in HTML elements using jquery or javascript?
If there is already a text "Down" in paragraph elements, then I just want to append text "full", so that it would be "Down full". Is this possible? Which method should I use?
Hi, I'm trying to have the action of a HTML form built when the user clicks the submit button.
So the user fills in a form, clicks submit, then the action gets built then it actually gets submitted. The reason being is because the form has a load of options on it which will be passed to a script.
How would I go about doing this with Jquery?
I am trying to find the correct syntax to pass a varible to my JQuery Post.
var id = empid;
$.ajax({
type: "POST",
url: "../Webservices/EmployeeService.asmx/GetEmployeeOrders",
data: "{empid: empid}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(result) {
alert(result.d);
}
I don't think the data: value is quite right. Someone set me straight?
Thanks!
So i'm trying to render a template with trimpath in IE8, but when passing the template (a jquery object) there is nothing in it. This all works in chrome,safari,firefox.
So to give an example:
var $flickrImageGalleryPreviewTemplate =$('#flickr_image_gallery_preview_template',rootel);
$flickrImageGalleryPreviewTemplate.length)
will result in 0 in IE8 and 1 in FF,Chrome,Safari
I am having problems using multiple queues in jQuery. Consider the following example:
$('#example').click(function() {
$(this).delay(1000, 'fx2').queue('fx2', function() {
alert('here');
});
});
The alert never fires. Why?
I have a custom jQuery accordion menu on my site in a module, when the mod is enabled it breaks my RokSlideshow module.
I can't get them both to work at the same time.
The site is http://www.fbcsheffield.org/2.0
Any help would be much appreciated!
I want to make an article rotator similar to http://www.vmagazine.com/
And I want to use jQuery.
I know there are carousels like jCarousel and jQuery Carousel.
There is also the Coda-Slider, but I don't fint it very elegant.
Can anyone suggest a good jQuery method / script for having an article carousel?
I don't want to use MooTools, Prototype etc. since I'm already using jQuery.
Any suggestions anyone?
Hey guys quick question, I have a jquery post function that returns a response on success after the click of a div, however I would like to return multiple variables on success. Do I have to use JSON, and if so, is it possible to integrate it into the $.ajax function after success? Thanks in advance for your time.
$.ajax({
type: "POST",
data: "action=favorite&username=" + username + "&topic_id=" + topic_id + "&token=" + token,
url: "favorite.php",
success: function(response)
{
}
});
I am new to jQuery, but I would like to have a button that when clicked will add more textboxes to a page. I have three textboxes that contain data of the same type and if the user has more data of the same type to enter, I would like to pop up three more textboxes.
What would be the best way to go about that?
How do I test to see if links are external or internal? Please note:
I cannot hard code the local domain.
I cannot test for "http". I could just as easily be linking to my own site with an http absolute link.
I want to use jQuery / javascript, not css.
I suspect the answer lies somewhere in location.href, but the solution evades me.
Thanks!
Strange conflict in my code.
I have function that called from body onload:
var someGlobalVar=new SpecialType();
function OnBodyLoad()
{
someGlobalVar.Bind();
}
but when i include JQuery 1.4.2 to my project i have error that someGlobalVar is undefined.
Why global variable now is undefined and what ways to fix it?
Hi to all,
how can I overload or extend (or intercept) jQuery's .html() method so that it works its default way unless the object has a certain class?
Thanks
Anyone have a clue how I can use Jquery to find:
http:// or www. and ends with .com, .org, .edu
store that as a variable and wrap it in
<a href="variable"> <a/>
So I have a textarea and when people put in links, I would like to then make them into hyperlinks once they are posted.
Make sense?
can we use more than one click event in the Jquery
as
$(document).ready(function(){
$(#button).click(function(){
...........click(function(){
...........click(function(){
});
$(this).hide();
});
});
pls help me
I am currently running 1.3.2, and i have no problems with it so far. Are there any good reasons why i should have a look at jQuery 1.4.
I know you don't know what type of application i have, but maybe there are some mayor benefits that suits every developer.
Thank you in advance!
JQuery
Assume this works: $('table td').load('/my/url/ div p');
I would end up with <td><p>Some Text</p></td>
I want to end up with <td>Some Text</td>
How would I do that?
Hello,
I have created a drop down with JQuery that can be seen here by clicking the Preview button on top:
http://jsbin.com/ubire3/edit
It works fine except for one problem. When i hover over the main hover links (blue ones) quickly eg going horizontally quickly hovering each top menu, the some submenus don't close. How do i make it so that even if i hover fast over them all other submenus are closed?
Thanks.
In prototype the cumbersome for:
for (i=0; i<10; i++) { ... }
can be written as
$R(0, 10).each(function(i){ ... });
Is there an equivalent of range in JQuery ?
I have being using jquery autocomplete. By default it is showing 10 items in the dropdown, i want to increase its number to 20 or customise it according to requirement. i have tried many ways of cache length but none of them is working. pls suggest a way.