Hi all...
I've come across something that I think is a little odd, but I'm not
sure if I'm just being dumb. Have a look at this:
$(function() {
var $div = $("");
var $divs = $();
$divs.add($div);
console.log($divs.length); // == 0
$divs = $().add($div);
console.log($divs.length)
It's normal, after append a new row in a table, to not access a td
(from the new row), with his id or class?
Hello,
Would it be possible to add the choice of method in options ?
eg:
$("#username").autocomplete(url, {max: 50, type: 'POST'});
Devether
I recently implemented the Image Cross Fade Transition (http://
jqueryfordesigners.com/image-cross-fade-transition/)
It works great, and I'm hoping to add to the code to enhance the
functionality. Currently, if I hover over the image, it runs the cross
fade transition, which I would like to keep.
As per the docs (http://docs.jquery.com/Traversing/add),
$("div").css("border", "2px solid red")
.add("p")
.css("background", "yellow");
That will add a 2px red border around any 'div' element.
Then add in a new selector and grab all of the elements. Add a yellow
ba
Maybe I'm not understanding the point of .add() but it doesn't really
do what I'd expect nor can I figure out how to do what I thought would
be simple.
I want to combine 2 jquery objects.
var $obj1 = $(".stuff");
var $obj2 = $(".morestuff");
$obj1.add($obj2);
alert($obj1.length);
This doesn't do
I have default.aspx page include some usercontrols menu.ascx
and in default page i using jquery to add selected class to a link
clicked
function pageLoad() {
$('#menu a').click(function() {
$('#menu a').removeClass('selected');
$(this).addClass('selecte
Hi.
I have the following document.ready:
$(document).ready(function(){
$('#formGen1').load('formGen1.jsp');
if(${membership eq 'propertyContractor'}) {
$('#formGen2').load('formGen2.jsp');
$('#formGen3a').load('formGen3a.jsp');
} else if (${
Oops--one change:
/* create unique name & id
*/
newElem.children('input:first')
.attr('name', 'foo')
.attr('id', 'foo')
.attr('value', '');
There's no sense giving it a name &
It looks the problem stems from non-unique IDs for your cloned
elements. So, the first thing to do is to get rid of those and use an
indexing method.
Title
Question:
Hi,
I have two issues the following script.
1. The delete button will only delete the first form element. The rest
of the delete buttons do nothing.
2. The add button adds a new element after the first one. I need it to
add it at the end of the list (i.e. always last).
The jquery is:
//Add a ne
Hallo all.
I need to add an include css from an iframe to a parent as described
in the title.
Is it possible via jQuery?
Kind regards
Massimo
Hello,
I have the following anchor:
http://www.example.com/files/map.pdf"; onClick="javascript:
pageTracker._trackPageview('/downloads/map'); ">
How can I add
onClick="javascript: pageTracker._trackPageview('/downloads/
map');"
To all anchors of CSS class "Download" using JQuery?
Thanks,
Hi,
I have an unordered list and I would like to use Jquery to add some
's to it.
How do I do this?
Thanks!
i have to create a listbox and a textbox.
I want to select value form listbox then this value shows in textbox
http://www.w3.org/
TR/html4/strict.dtd">
test
http://jqueryjs.googlecode.com/
files/jquery-1.3.2.min.js">
$(document).ready(function(){
$('#edit-default-soure').change(function
Hi everyone.
I am not familiar with js and jQuery, but need to create function to
add/remove blog post to "My favorites" page and update counter of
saved posts. Is any ready solution - plugin or snippet - to it?
There is my html snippet.
http://www.example.com/add-post-to-my-favorites-page.htm"
Hello everyone, I just started using jquery and I'm having some
difficulty figuring out how to do two things.
First, how do I get this:
Hello
To become this?
Hello
I know how to do $("b").before("span"), but $("/b").after("span") is
not working.
Second, how do I get this:
Hello
Hello
To become t
I have 2 class options .bookmarked and .not
Or
My js looks like
$(".bookmarked,.bookmarked not").click(function() {
var url_id = $(this).attr('id').split('_');
var status = $(this).attr('class');
//alert(status);
Hi,
I have 3 image, in turn called img1, img2, img3.
I need a code snippet that will add a border to the image when it is
clicked, and if I click the other image, the border will disappear,
the newly clicked image will have a border.
For short, only image has border at a time and only the image
Hi all,
This is hopefully simple. I have a bunch of links with titles, like
TITLE="Facebook" and so on. I am adding JQuery to make the links open in a
new window and would like to add some text to the title that says "this link
will open in a new window", whilst keeping the original text. I'm using
HI there I am using the working with the following script
Add icons to your links automatically using jQuery & CSS
http://cool-javascripts.com/jquery/add-icons-to-your-links-automatically-using-jquery-css.html
// Add pdf icons to pdf links
$("a[href$='.pdf']").addC
I find it frustrating that the transversing add function (http://
docs.jquery.com/Traversing/add) doesn't allow passing in a context
like the jQuery function (http://docs.jquery.com/Core/
jQuery#expressioncontext).
Here's a use case: I want to select two different classes under the
same element.
Hi all,
How i Add/Remove element dynamically using jquery ,
i want to Add/remove not more then 8 element (ie Textbox)
Thanks
bharanikumar
I'm writing an application that will show the history of a form, so
for example record 1 is revision 1 and record 14 is revision 14. This
all works fine and dandy, but what I'm trying to achieve is where the
input value differs to highlight the form field.
I'm imaging the code to basically look l
How do i add a link to the leaves using treeview async?
I'm feeding it json encoded arrays like array('text' => hello, 'id' =>
1) and i'd like to add a 'url' => '/test.php' for example but i can't
figure out how to do this? Is this possible?
Thank you in advance
I'm trying to create a list, to which you can:
1. add and remove items.
2. according to what's in this list, there should be dynamic content
loaded on to the page.
I've accomplished 1 with the code below. I'm not sure about how to
accomplish 2. If anyone could point me in the right direction (an
Hello guys!
I'm making a simple system where by a form i add a date in mysql
without refresh the page, using $.ajax({ });
but i have a problem... now, i need to show the result at the same
time that i add it (add and show the date without refresh the page)
how can i make it?
Cheers!
Thanks
Hello guys!
I'm making a simple system where by a form i add a data in mysql
without refresh the page, using $.ajax({ });
but i have a problem... now, i need to show the result at the same
time that i add it (add and show the data without refresh the page)
how can i make it?
Cheers!
Thanks
Can jQuery add a div in a specific location?
I currently have :
Programs
But rather than hard coding the .loading div into every spot its needed. The
page
Hey everyone,
I need help with a jquery task.
I have a form that has it's HTML inserted into the database (yeah yeah
I know..not my idea..I'm new here and just finding this out).
Anyway, each form field has an embedded class in the HTML.
The form is dynamically generated. Can be anywhere from
I want to make rows in a table clickable. the row already contains a
link in a TD cell which works - however, i've added a hover effect to
the table and want to copy the href from the link and add it to the
row itself
all rows in the table have class .Row to make selection through
JQuery easie
Hello everybody,
I have a little question about the developpement of a new JQuery
plugin.
(I hove it's the right place to ask ).
I understood how to add method to a jquery object but I don't find how
to had an "attribute" to this objet.
My goal is to have attributes attached to my object to retri
Hi, which would be best way to add some extra links/buttons on
datepicker?
For example i need 2 more options:
3)Today option, which sets values of input field and datepicker UI to
current date
2)A link which clears inputfield value
Do i need to hack the datepicker code or is there a way to create
Hi,
I suggest add a Bookmark button to Plugins page [http://
plugins.jquery.com/].
Is it the right place to give Website Feature Request ?
Hi people, how can i add a first option value to a combobox,
containing for example "Select..."
With append i can add the new value, but i don´t know how to put it
first.
Any ideas will be apprecited!
Thanks!
Hello,
In a form I have a select (S), a button (B) and an input (I) among
other form elements.
I would like to add the value of the select, when the button is
clicked, to the end of the text that is currently in the input.
How can I do this?
Thanks,
Miguel
Hi all,
What I would like to do is add a 'selected' class to a list of navigation
items based on if the href attribute of the link matches the current page. I
know I could do this with php, but that's not an option for this particular
item I'm working on.
The code I have so far is this:
The al
Hi there,
I am probably trying the most basic example and failed in my attemps
so far. I would like to add new ´s to an existing with
jQuery. What I am trying to do:
in my script:
...
$('#myList').append('please show up');
...
in my HTML:
...
existing link
...
But although I ask
Hi all,
why doesn't this work? it doesn't color red
$.fn.hoverClass = function(c) {
return this.each(function(){
$(this).hover(
function() {
$(this).addClass(c).animate({ marginLeft: '+=5px' },
200)
Hi,
i have a tage and i would like to add a node using jQuery.
what is the best method in order to get ... ?
thx
--
Alain
---
Windows XP x64 SP2 / Fedora 10 KDE 4.2
PostgreSQL 8.3.5 / MS SQL server 2005
Apache 2.2.10
PHP 5.2.6
C# 2005-20
I need to be able to dynamically add a new rows to a table and add
elements such as check boxes, plain text and hyperlinks. I cannot
find any examples of this. Would anyone have any samples or a good
url?
Thanks!
I'm interested in editing a table by adding/removing rows and columns.
I don't need to sort or paginate, I only need to alter the size of the
table. Does anyone know of a plugin which does this? I've seen plugins
which primarily manipulate table order, or paginate, or can only add
rows, but that's
Hello Guys,
I'm trying to create an add button that will change the options in a
select form from 0 to 1 and so on.
So When the add button is pressed. The Qty: Select Goes from 0 to 1
Any help with this would be awesome, this is my first time trying to
use jquery with forms.
Best,
Justin
demo http://www.aemundo.com.br/jquery/validade/demo.html
Brazil, Manaus, Amazonas.
demo
http://www.aemundo.com.br/jquery/validade/demo.html
Hello,
I want to custom this jQuery script :
$(document).ready(function(){
$(".accordion h3").eq(0).addClass("active");
$(".accordion p").eq(0).show();
$(".accordion h3").click(function(){
$(this).next("p").slideToggle("fast")
.siblings("
Sorry, I'm new to Google Groups and was trying to reply to a post but
couldn't figure out how without e-mailing the author directly[1].
I'm trying to add the click() event to the each() loop constructor.
e.g.
$(document).ready(function()
{
$("a[id*='activate-']").each(function(i){
How can I add items to the superfish menu at runtime? I need to make
an ajax menu, I can load the first level of the menu but I can't load
the the submenus
I would suggest dropping the add-/remove- class stuff entirely in
favor of simply switching out the background image. Try something like
this:
// Attach a click event to every input in the .nav section.
$('div.nav input').click(function(){
// Extract the specific floor plan from the class
Hello. I am new to JQuery, and I thought I'd try creating a small app
to learn more. I've hit a problem that I cannot seem to fix. I have
a right navigation bar with 8 floor plan links. When you click one,
the accordian menu drops and shows some details (this works great),
the other thing tha
Hi,
Is there any way to add a property named via a variable to a
javascript object?
this is what I would like to do:
foo(bar);
function foo(x)
{
window.x = 1;
}
--
so that the object window will end up with a property calle
Hi all,
This is a very junior question that I need help with please ...
I use
var start_odo = $("#end_odo"+counter).val()
to get the value of a text input.
What statement would I use to assign the value start_odo to a text
input.
Thanks guys ...
Ok, this probably just needs someone to slap me towards a tutorial,
however I couldn't seem to find one!
I'm trying to use jquery to add a child to part of an unordered list,
so can anyone explain how to make a new sub-child of the id 'test'
appear? (see below)
SCRIPT:
function populateAmounts()
What is the best way to add a callback to a plugin that I wrote? Do I
just add it as an additional option?
So, after the ajax function is run, how would I allow a custom
callback or function to be added by the user?
$.fn.testStatus = function(options) {
var defaults = {
status: '?ac
Hello,
I need to check if an input, #Message, value is empty.
If it is I need to add the following after it:
Welcome Text
How can I do this?
Thanks,
Miguel
Hey everybody,
I'm trying to get a link to be highlighted on page load if another
element (in this case, an iframe) has an inline style of "display:
block;".
This is what I've got so far:
$(document).ready(function() {
if ($("#clientA").is("iframe[style*='block']")) {
$("a:contains(
Hi
I'm pretty new to jquery and I've basically got a form which allows
you to add additional fields and take them away, I've got it adding
and removing any fields that are there when the page loads but any
that are added after that the controls don't do anything.
I've got each form element like
i have an interface that allows user to add chapters and remove any chapter
from within the group. i'm having issues re-calculating the sort order.
currently if user adds four chapters (1,2,3,4), removes 2 and adds two more
the order becomes (1, 3,4,2,3). i know i need to so something with index
i have built a simple add/remove chapter form. when "add new chapter"
clicked; ajax get fired, retrieves php file, and appends new chapter. newly
appended chapter is a added to ol#append-chapter. the script also keeps
track of chapter count and displays current chapter count in h4.
issues:
1.
Hello
I really like this script.
I was wondering , how would be possible to add a class to the middle
element ?!
I mean, by default there are always 3 elements, and i would like the
middle one to be different (to add it some css style).
Thanks.
Im having trouble getting this to work, I feel like Im really close.
Does anyone have any idea?
var path = location.pathname.substring(1);
if ([EMAIL PROTECTED] == path]) {
$('.nav ul#example li.addClass('active'));
}
Im having trouble getting this to work, I feel like Im really close.
Does anyone have any idea?
var path = location.pathname.substring(1);
if ([EMAIL PROTECTED] == path]) {
$('.nav ul#example li.addClass('active'));
}
I want to make this work...
$('.class' + [$[1-9][0-9]?] + '').each(function() {etc
mean that the class would be .class0 or .class99 etc.
thanks for the help
jeremyBass
note also tried:
$('[class=Round_gen^[1-9][0-9]?]').each(function() {
$('.Round_gen'+ [(/$[1-9][0-9]?/)] +'').each(functio
Problem:
I have two divs, each containing tab navigation. When I click tab navigation
items they receive class 'selected' while the previously clicked tab anchors
retain 'selected' class as well.
My intention is that with click of tab, other tabs drop the selected class.
jquery:
$(function (
Is it possible to add a class to links based on what page you are on?
Or have a onClick class hold through the page load?
Hi group,
How do i dinamically convert strings like
view
view
view
view
To:
view
add
edit
delete
I was reading:
http://docs.jquery.com/Attributes/text
http://docs.jquery.com/Manipulation/wrapInner
Thanks ind advance.
Hi all,
I need some help, I want to apply a class with 'addClass' at all of
the first and not to the second
Example:
1
2
3
4
How can I achieve this? Is possible without using the each() function?
Any help, suggestions, examples are welcome.
--
Massimiliano Mari
;\\d+"','g');
html = html.replace(_regex_jquery,'');
JK
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of realfun
Sent: Tuesday, July 22, 2008 8:23 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] jQuery add additional attribute like "jQuery12
I have some html that is brought in through ajax which itself has some
jquery functions attached to it. These are not working unless I
include a document ready in the content that is pulled through with
ajax. This in turn conflicts with my pages jquery document load. Is
there a way to avoid thi
Hi,
I am using jquery to load image with ajax.
$("#thumbnail").image(returData,function(){});
$.fn.image = function(src, f){
return this.each(function(){
var i = new Image();
i.src = src;
i.onload = f;
this.appendChild(i);
});
}
How can
I've read all the other info about adding a row to a table and I just can't
get it to work. I've got my dialog popping up with two buttons. When the
user clicks Volunteer, I want an empty row to appear at the bottom of my
table and the "Volunteer" button to change to "Save". The user would e
I have a list of links, and when one is clicked, I would like a class
to be added. I understand how to do this, but when you click another
link, I would like the class removed from the first click and added to
the second click, and so on, so that there is always only one link
with the class appli
Hey there! This might be a double post, but I can't find my recent
entry regarding the same topic!
So, once again :)
When I try to load google maps dynamically with $.getscript() with a
click on a button, the script tries to redirect me for some reason.
What am I doing wrong? Please help, I've b
Hi can anyone help?
I've just downloaded the jQuery Collapsor demo (http://
plugins.jquery.com/project/collapsor) for use on a navigation system.
I'm still a newbie with js and was wondering if anyone can point me in
the right direction of how to add/remove a class to the trigger
element (in thi
Hello all,
I love jquery but I'm really new to ajax and development (and
english ;-) ).
I want to add the attribute onclick on some link on my page :
I found how to add a title for the link (for example), I can also
change the color and some other things but in fact what I really want
to do is a
Hi all,
I am trying to add links to a div when another div is clicked.
The links get added fine, but they do not work when clicked. However i
am also saving the value to a cookie & display them on page refresh,
at this stage they do work as expected.
Any ideas on how I can get the links to work ju
hi all,
i am using the code below to hide some content, the first part works
ok & hides the content as expected but i cant get the second part to
work - i.e. showing the content again - any ideas?
i don't want to use toggle as i am displaying the content based on a
cookie value & when the cookie i
Hello
We are working on a Form Software and we are trying to implement,
" Add Another, Remove" DOM functionality inspired by
https://www.google.com/jobs/application/application
Do we have Jquery plugins for this?
Any freelancers willing to help out on this work?
Thanks
Prakash
--
View th
Can it be done and NOT opening the bookmark in a side window in
firefox?
I'd like to be able to do something like this
//Extend Function for easy callbacks
Function.prototype.andThen=function(g) {
var f=this;
return function() {
f();g();
}
};
$('div[class="rating"]').livequery(function(){
var $this = $(this);
var opts = function(){
Hi everyone,
I'm working on a simple project and I'm going to use jQuery's .load function
to switch between content pages so that the page does not have to unload and
reload. I'm doing this because my page needs a flash music player on it and
this allows for uninterrupted music. I'd like a way to
When the height of the navigation bar is over the window of web
browser .,I want a scrollbar show up in my navigation bar instead of
in the web browser .
I want to know how ? How can I tell whether the height is over the
bottom of the web browser
Okay,
So i have a basic shopping cart/order system application. I would
like the back-end (php and mysql based) that displays current orders
to be able dynamically see a new order and display it on the page,
without refreshing the page? How do i have jQuery work with my php to
accomplish this?
T
I see jQuery.fn.add is not checking for duplicates (1.2.1) is that
intentional or a bug ?
Hi,
First, thanks for the great jquery API and the tablesorter/pager
plugin. They are really easy to use.
I've had a need recently to dynamically add row and refresh the
table.
For now, I don't really care about refreshing the page at the page
where the new row will be added, I just want the pa
Hi to all, hope you can help..
I need to add and remove href values as you click in a list, ex:
Yahoo
Yahoo
And need to pass values to form a url.. if i click on 1 then the url
to get will be:
some.php?brand=1
If i click on # 2, then
some.php?brand=1,2
If i click on 1 again will remove t
Hi,
I would like to use jQuery to add a row with form fields of a table to
the end of the table, the idea is to duplicate the previous one it
with all of the form fields (drop downs, input fields, hidden fields,
etc.) changing the input ID of each input, clearing the input values
and adding a "D
Hi,
My table format is this
some data
some data
some data
some data
I have a small issue which might be easy for jquery pros.
Initially I'm saving up all the table rows as suggested by George(Thanks to
him) in my previous post like.
for( var i = 0, n = trows.length; i < n; ++i
Hi all,
I'm guessing this is really easy in jQuery so enlighten me - given a
list of, say, ten items, I want to leave the top six items unstyled, but
add a class to any below number six - in order to highlight, in this
specific case, that only the first six items will be used, and from
seven
hello friends!
question: is it possible to catch the print event via javascript/ jquery?
AFAIK, only IE has built-in capabilities :
window.onbeforeprint
window.onafterprint
I did a quick test, and in fact it is possible to overwrite the window.print
function:
window.print = function(o){al
I wanted to create an empty jQuery object and add elements to it for
later use but I couldn't get it to work. Eventually I started
experimenting and discovered the following:
var test = $('form').add ('li');
console.log (test);
will return a jQuery object containing a list of forms plus a list
Hello,
I need to add a script for bookmarking a page. Is there jQuery plugin
for doing this ? If not is there a simple way of doing this with the
jQuery sintax ?
Thanks for your help
Pierre
92 matches
Mail list logo