[jQuery] .add() strange behavior?

2010-01-18 Thread Matt Parlane
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)

[jQuery] Add, remove rows to table,

2010-01-16 Thread NMarcu
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?

[jQuery] Add option to autocomplete plugin to set method

2010-01-12 Thread Devether
Hello, Would it be possible to add the choice of method in options ? eg: $("#username").autocomplete(url, {max: 50, type: 'POST'}); Devether

[jQuery] Add a second trigger in this function

2010-01-05 Thread Jordan
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.

Re: [jQuery] .add()

2009-12-23 Thread Charlie Griefer
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

[jQuery] .add()

2009-12-23 Thread Scott
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

[jQuery] Add class selected to a hyperlink in navibar! Help me.

2009-12-20 Thread Nguyen Phu Cuong
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

[jQuery] add element after page has loaded

2009-11-25 Thread edencane
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 (${

Re: [jQuery] Add/Delete form elements

2009-11-22 Thread brian
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 &

Re: [jQuery] Add/Delete form elements

2009-11-22 Thread brian
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:

[jQuery] Add/Delete form elements

2009-11-22 Thread tomh88
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

[jQuery] Add an inlcude css from an iframe to a parent.

2009-10-21 Thread m.ugues
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

[jQuery] Add value to Link. How can I do this?

2009-10-16 Thread shapper
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,

[jQuery] Add content

2009-09-24 Thread a1anm
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!

[jQuery] add value from listbox to textbox

2009-08-21 Thread Tan
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

[jQuery] Add post to "My favorites" page

2009-08-18 Thread Vladimir
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"

[jQuery] Add element after closing tag of another.

2009-08-14 Thread Breno Gazzola
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

[jQuery] Add / Remove Class help

2009-08-12 Thread Dave Maharaj :: WidePixels.com
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);

[jQuery] add class and remove class from perspective element

2009-08-12 Thread runrunforest
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

[jQuery] Add extra content to the title attribute

2009-08-11 Thread Paul Collins
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

[jQuery] Add icons to your links automatically

2009-07-15 Thread Jacques Choquette - WhistlerGraphicDesign.com
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

[jQuery] Add function (transverse)

2009-07-13 Thread aakoch
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.

[jQuery] Add / Remove Element dynamically

2009-07-02 Thread bharani kumar
Hi all, How i Add/Remove element dynamically using jquery , i want to Add/remove not more then 8 element (ie Textbox) Thanks bharanikumar

[jQuery] Add class where input differs

2009-06-29 Thread Richard Walsh
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

[jQuery] add link to leave in treeview async?

2009-06-25 Thread Kasper
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

[jQuery] Add items to list, is this a proper approach?

2009-06-19 Thread maubau
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

[jQuery] Add without refresh and show the result

2009-06-08 Thread LordSantiago
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

[jQuery] Add data without refresh and show the result

2009-06-08 Thread LordSantiago
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

[jQuery] Add magically?

2009-06-03 Thread Dave Maharaj :: WidePixels.com
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

[jQuery] Add Class to all form elements

2009-06-01 Thread Loony2nz
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

[jQuery] add href to table row from link inside row

2009-04-19 Thread kevind
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

[jQuery] Add an "attribute"

2009-04-19 Thread David
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

[jQuery] add custom links on datepicker

2009-04-09 Thread molips
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

[jQuery] add a Bookmark button to Plugins page

2009-04-02 Thread Kixe
Hi, I suggest add a Bookmark button to Plugins page [http:// plugins.jquery.com/]. Is it the right place to give Website Feature Request ?

[jQuery] Add option to combo

2009-03-16 Thread Chizo
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!

[jQuery] Add value to input

2009-03-12 Thread shapper
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

[jQuery] add a 'class' to tag based on page file name

2009-03-11 Thread vintagetwitch
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

[jQuery] add to

2009-03-10 Thread Elmar
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

[jQuery] Add an animate function to a addClass?

2009-02-28 Thread 123gotoandplay
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)

[jQuery] add a child node using jQuery

2009-02-11 Thread Alain Roger
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

[jQuery] Add Checkboxes in a table.

2009-01-22 Thread Andy
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!

[jQuery] Add/remove table rows and columns

2009-01-20 Thread GregBook
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

[jQuery] Add Button / Select Form Change

2009-01-19 Thread Jsudesign
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

[jQuery] add jquery.validade function ShowToolTips

2008-12-28 Thread Paulo Eugênio
demo http://www.aemundo.com.br/jquery/validade/demo.html Brazil, Manaus, Amazonas.

[jQuery] add jquery.validade function ShowToolTips

2008-12-28 Thread Paulo Eugênio
demo http://www.aemundo.com.br/jquery/validade/demo.html

[jQuery] Add a class to an accordion

2008-12-13 Thread paul
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("

[jQuery] Add click() event to each() loop constructor

2008-12-10 Thread Brett Alton
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){

[jQuery] Add items to superfish in runtime

2008-12-08 Thread oware
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

[jQuery] Re: help with jquery add/remove class

2008-11-16 Thread Jason Huck
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

[jQuery] help with jquery add/remove class

2008-11-15 Thread bjreed
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

[jQuery] add property name via a variable

2008-11-15 Thread Johnnie Walker
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

[jQuery] add a value to text field

2008-11-12 Thread GrootBaas
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 ...

[jQuery] add child to very simple question!

2008-11-07 Thread jfk
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()

[jQuery] Add callback to plugin?

2008-11-06 Thread Nic Hubbard
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

[jQuery] Add label

2008-10-27 Thread shapper
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

[jQuery] Add class (highlight) to link if other element has given attribute

2008-10-25 Thread jlgoolsbee
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(

[jQuery] Add new elements to a page but can't access existing js

2008-10-06 Thread andrew
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

[jQuery] add/remove and recalculate index

2008-09-30 Thread claudes
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

[jQuery] add/remove with ordered information

2008-09-27 Thread claudes
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.

[jQuery] add a new class for middle element

2008-09-26 Thread gepa
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.

[jQuery] Add Class to matched href location Click to flag this post

2008-09-24 Thread jrutter
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')); }

[jQuery] Add Class to matched href location

2008-09-24 Thread jrutter
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')); }

[jQuery] add regex in $('.class')

2008-09-23 Thread jeremyBass
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

[jQuery] add/removeClass problem

2008-09-17 Thread yellowboy
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 (

[jQuery] Add Class based on page name???

2008-09-11 Thread thedoctor
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?

[jQuery] Add span and class with text used inside a href - WrapInner according to text

2008-08-30 Thread Josoroma
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.

[jQuery] Add a class only to the first parent

2008-08-24 Thread Massimiliano Marini
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

[jQuery] Re: jQuery add additional attribute like "jQuery1216740106187" to any operated node(IE only)

2008-07-22 Thread Jeffrey Kretz
;\\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

[jQuery] Add events and functions to ajax content

2008-07-15 Thread hubbs
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

[jQuery] [ Add Onclick on loaded image ]

2008-07-10 Thread andy
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

[jQuery] add new row to table

2008-06-28 Thread ktpmm5
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

[jQuery] Add class on click, then remove when click another, and add to that.

2008-06-25 Thread hubbs
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

[jQuery] Add script dynamically?

2008-06-18 Thread lamy
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

[jQuery] Add/remove class in Collapsor

2008-06-05 Thread vneal
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

[jQuery] Add onclick attribute to a a link - Is it possible ?

2008-05-23 Thread dme69
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

[jQuery] add a link after page load?

2008-05-19 Thread thekman
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

[jQuery] add/remove class click function

2008-05-11 Thread thekman
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

[jQuery] Jquery "Add Another and Hide" DOM functionality

2008-04-17 Thread tuxservices
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

[jQuery] add to favorites link that works in IE AND Firefox

2008-02-18 Thread johnwboyd
Can it be done and NOT opening the bookmark in a side window in firefox?

[jQuery] Add a callback to any method

2008-01-21 Thread chrismarx
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(){

[jQuery] add changing URL string to address for AJAX a la Gmail 2

2008-01-08 Thread Scott Hulbert
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

[jQuery] Add a scrollbar to a navigation menu

2007-12-11 Thread Jason
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

[jQuery] Add a based on updates the database

2007-11-18 Thread Chris
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

[jQuery] 'add' missing unique?

2007-11-09 Thread Flesler
I see jQuery.fn.add is not checking for duplicates (1.2.1) is that intentional or a bug ?

[jQuery] Add row and refresh tablesorter with pager.

2007-10-16 Thread FreeFallFred
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

[jQuery] Add Href Values to create a querystring

2007-10-07 Thread dOS
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

[jQuery] Add Table row

2007-10-01 Thread camilo_u
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

[jQuery] add class to row object of table

2007-08-20 Thread Potluri
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

[jQuery] Add class to specific list items

2007-08-07 Thread Michael Price
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

[jQuery] add a print event to jquery: possible ?

2007-08-01 Thread Alexandre Plennevaux
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

[jQuery] Add() bug?

2007-06-20 Thread Gordon
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

[jQuery] "Add to bookmarks" plugin ?

2007-05-07 Thread pbourgeois
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