[jQuery] Re: Select tab from link

2010-01-23 Thread inidaho
Newbie. I have multiple tabs instances on a single page. They each have a different ID and each set of tabs has 5 tabs. If I am trying to go to a specific tab via link within a specific set of tabs but it is updating them all. I figure I need a ".this" command somewhere but haven't been able to

[jQuery] Re: Select part of text and add a CSS class

2010-01-18 Thread Scott Sauyet
On Jan 18, 4:55 pm, Scott Sauyet wrote: > It's a >         very typo: difficult -- Scott

[jQuery] Re: Select part of text and add a CSS class

2010-01-18 Thread Scott Sauyet
On Jan 18, 11:46 am, Mircea wrote: > Yes, I want to be able to select a part of the text and add a span to > it. Can this be done? It's a very difficult problem to solve in the general case. Imagine this markup: It's a very difficult problem to solve in the general c

[jQuery] Re: Select part of text and add a CSS class

2010-01-18 Thread Mircea
Thanx a lot Morning. It does work this way All the best!

[jQuery] Re: Select part of text and add a CSS class

2010-01-18 Thread MorningZ
the variable name/reference is "$spn" so it would be: $("p").append($spn); your line of $("p").append("spn") does exactly what you told it to do :-) On Jan 18, 2:34 pm, Mircea wrote: > I've added > > $("p").append("spn") > > It ads only the text spn at the bottom of the text. I probably di

[jQuery] Re: Select part of text and add a CSS class

2010-01-18 Thread Mircea
I've added $("p").append("spn") It ads only the text spn at the bottom of the text. I probably did not used the append function right to pass the variable to p. Thanx

[jQuery] Re: Select part of text and add a CSS class

2010-01-18 Thread MorningZ
it probably is working, but you failed to *do* anything with the generated tag... that's why i added as a comment: // append/set this '$spn' inside another DOM object On Jan 18, 12:29 pm, Mircea wrote: > Thanx for the code. > It does not work to me. I am a newbye is JQuery, please excuse the >

[jQuery] Re: Select part of text and add a CSS class

2010-01-18 Thread Mircea
Thanx for the code. It does not work to me. I am a newbye is JQuery, please excuse the dumb questions... This is my code and markup: http://www.w3.org/TR/html4/loose.dtd";> http://code.jquery.com/jquery-latest.js";> http://jqueryui.com/latest/ui/ ui.core.js"> http://jqueryui.com/l

[jQuery] Re: Select part of text and add a CSS class

2010-01-18 Thread MorningZ
yes, it indeed is selection = getSelectedText(); if(selection.length >= 3) { $(this).html($(this).html().addClass("selected"); } to selection = getSelectedText(); if(selection.length >= 3) { var $spn = $("").html(selection).addClass ("selected"); // append/set this '$spn' inside

[jQuery] Re: Select part of text and add a CSS class

2010-01-18 Thread Mircea
Yes, I want to be able to select a part of the text and add a span to it. Can this be done? Thank you.

[jQuery] Re: Select tab from link

2010-01-17 Thread MorningZ
if your link follows the pattern of having it's ID as "linkXX" where "XX" is the zero-based index of a tab, then the live binding will "pick up" any new instances of such links in your AJAX responses/ additions btw, i had a typo... "lit.length" should be "hit.length" On Jan 17, 11:06 am, CMI_Guy

[jQuery] Re: Select tab from link

2010-01-17 Thread CMI_Guy
MorningZ, Thanks for your reply. Something was missing from your syntax so I made one small change to your script: $(document).ready(function(){ var $tabs = $("#tabs").tabs(); $("a[id^='link']").live("click", function() { var hit = this.id.match(/^link(\d+)$/);

[jQuery] Re: Select tab from link

2010-01-17 Thread CMI_Guy
Thanks MorningZ.. But, it "appears" that your script is missing syntax somewhereI do not know enough about javascript to find the error. Any ideas why it's not showing as valid? $(document).ready(function(){ var $tabs = $("#tabs").tabs(); $('a[id^='link').live("click", function

[jQuery] Re: Select tab from link

2010-01-16 Thread MorningZ
There's no need to repeat the code... you can even do it with ".live" so it'll work if there's 1 or 100 tabs $(document).ready(function(){ var $tabs = $("#tabs").tabs(); $('a[id^='link').live("click", function() { var hit = this.id.match(/^link(\d+)$/);

[jQuery] Re: Select tab from link

2010-01-16 Thread CMI_Guy
StephenJacob, Sloppy fix. But works. $(document).ready(function(){ var $tabs = $("#tabs").tabs(); $('#link0').click(function() { // bind click event to link $tabs.tabs('select', 0); // switch to first tab return false; }); }); $(document).r

[jQuery] Re: Select all items in list on form submit

2010-01-15 Thread Richard McKenna
Thank you both for all your input changing to a click event on the button seems to have worked. I must have done something different this time as I tried that before posting here. Anyway thanks guys. On Jan 15, 1:17 pm, Amos King wrote: > Try tying in to the click event of the submit instead

Re: [jQuery] Re: Select all items in list on form submit

2010-01-15 Thread Amos King
Try tying in to the click event of the submit instead of the submit event. Just make sure to return false so the submit doesn't go off. On Fri, Jan 15, 2010 at 5:12 AM, Richard McKenna < richardofmcke...@googlemail.com> wrote: > So here's the full example. What it should do is select all the ite

[jQuery] Re: Select all items in list on form submit

2010-01-15 Thread Richard McKenna
So here's the full example. What it should do is select all the items that have been moved to the right hand side, then submit the form. http://67.199.29.196/selecttest.cfm On Jan 14, 9:27 pm, pedalpete wrote: > Can you give a bit more detail? > > Is the submit not firing? or the .each? > > I a

[jQuery] Re: Select all items in list on form submit

2010-01-15 Thread Richard McKenna
Thanks very much for your reply. OK following your advice I tried the following $('form#assignUsersForm').submit(function() { alert("submit fired"); $('select#assignedUserList option').each(function(i) { alert("each fired"); $(this).attr("selected",

[jQuery] Re: Select all items in list on form submit

2010-01-14 Thread pedalpete
Can you give a bit more detail? Is the submit not firing? or the .each? I always like to give my selectors an element+class/id, apparently it is more efficient, and I have noticed that some browses (it seems only sometimes) will miss some elements when only using the id/class. But throw some ale

[jQuery] Re: Select with different fonts for each element

2010-01-02 Thread Šime Vidas
Done! http://vidasp.net/jquery-example6.html

Re: [jQuery] Re: Select with different fonts for each element

2010-01-02 Thread Steffan A. Cline
te: Sat, 2 Jan 2010 15:34:30 -0800 (PST) > To: "jQuery (English)" > Subject: [jQuery] Re: Select with different fonts for each element > > > I had to go play cards with my cousin, so i left the code messy... it > has several bugs for now (try hovering over the list an

[jQuery] Re: Select with different fonts for each element

2010-01-02 Thread Šime Vidas
I had to go play cards with my cousin, so i left the code messy... it has several bugs for now (try hovering over the list and then hovering out without clicking any item)... It should take my 30 minutes to refactor the code and kill the bugs...

Re: [jQuery] Re: Select with different fonts for each element

2010-01-02 Thread Steffan A. Cline
Wow. That was quick and VERY cool. Think you'll package that into a plugin architecture? Simply, WOW! Thanks Steffan > From: Šime Vidas > Reply-To: > Date: Sat, 2 Jan 2010 14:59:34 -0800 (PST) > To: "jQuery (English)" > Subject: [jQuery] Re: Select with di

[jQuery] Re: Select with different fonts for each element

2010-01-02 Thread Šime Vidas
OK, this is it :) We can call this version alpha 0.1... the code is super-messy, and it most certanly won't work if you just copy-paste it... but this example actually works in all browsers... http://vidasp.net/jquery-example6.html

Re: [jQuery] Re: Select with different fonts for each element

2010-01-02 Thread Steffan A. Cline
To: "jQuery (English)" > Subject: [jQuery] Re: Select with different fonts for each element > > > I made it work in Firefox, but in IE it seems impossible to style each > OPTION element individually, same problem in Chrome > > But, I have an idea... give me a minute :)

[jQuery] Re: Select with different fonts for each element

2010-01-02 Thread Šime Vidas
I made it work in Firefox, but in IE it seems impossible to style each OPTION element individually, same problem in Chrome But, I have an idea... give me a minute :)

[jQuery] Re: $("select[name='kitten3']").append(new Option(group_array[i],id_array[i]));

2009-12-05 Thread MorningZ
Try $("select[name='kitten3']").append('' + group_array[i] + '"); On Dec 5, 12:33 pm, jabberwok wrote: >  $("select[name='kitten3']").append(new Option(group_array[i],id_array > [i])); > > this code works fine in firefox but not ie > > I get new node added to the select but they are blank, no v

[jQuery] Re: select a tab by default

2009-11-02 Thread MorningZ
http://jqueryui.com/demos/tabs Choose "Methods", then look for the "select" method On Nov 2, 9:57 am, northernLights wrote: > All, > > I have placed the tabs widget on my page, however, I don't want the > first tab to be the default.  I want the third  tab to the default > opened tab.  How do I

[jQuery] Re: Select the inverse of what you're looking for

2009-10-31 Thread Aaron Gusman
Thanks my friend, works fine..however i'm finding difficulty understanding the code for next time...Couldn't imagine opening brackets and writing a filter straight away :not(:contains On Oct 31, 5:04 am, mkmanning wrote: > Try this: > > $("tr:not(:contains(Brown))").css("background-color", "Red")

[jQuery] Re: Select the inverse of what you're looking for

2009-10-30 Thread mkmanning
Try this: $("tr:not(:contains(Brown))").css("background-color", "Red"); On Oct 30, 12:58 pm, Aaron Gusman wrote: > I have a table with 2 columns and four rows.  I am currently able to > highlight the row which contains a specific piece of text.  But what I > want to do is to highlight the rows t

[jQuery] Re: Select onchange event get a value from selects table row

2009-10-23 Thread jchambers
Give this a try... $(document).ready(function(){ $('select').change(function(){ var key = $(this).parent().parent().find('input').val(); var v = $(this).val(); $('#MSG').html( key +'
'+ v ); }); }); chooseonetwo Good luck, Jon

[jQuery] Re: Select element in form?

2009-10-11 Thread RobG
On Oct 12, 7:12 am, zephyr wrote: > Hi, > I have a form and want to select a text input element _in that > specific form_. This is my code: > > $("form [name=" +formName + "] :text[name=" +textInputField+ "]")) Why not: $(document.forms[formName].elements[inputName]) -- Rob

[jQuery] Re: Select element in form?

2009-10-11 Thread Karl Swedberg
You have a space between form and [name=...] . In CSS a space is a descendant selector, so it's expecting some descendant of the form to have a name equal to formName. Remove the space and you should be fine. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com O

[jQuery] Re: Select all class not " keyword_type_A", please help

2009-10-09 Thread Charlie Griefer
First off, I'd add a around those elements. If you do that, and give it an id attribute of 'myList', you can do the following: // hide all list items $('#myList li').hide(); // show only class keyword_type_S $('.#myList .keyword_type_S').show(); You can certainly do the same thing without the

[jQuery] Re: Select by containing text

2009-10-06 Thread KeeganWatkins
oops, copy/paste error. as there is no "text" method on RegExp objects, disregard the snippet above. it should be: // Existing "contains" filter function (a, i, m) { return (a.textContent || a.innerText || jQuery(a).text() || "").indexOf(m[3]) >= 0; } // New ":text-equals" filter function (a

[jQuery] Re: Select by containing text

2009-10-06 Thread KeeganWatkins
Hi Julijan, It sounds like what you need is a ":text-equals" filter The reason ":contains" fails in this case is because it does a global match. By anchoring the same RegExp against the beginning and end of the string, you should be able to select elements whose text matches exactly: // Existing

[jQuery] Re: Select by containing text

2009-10-05 Thread ryan.j
sounds like you want to .filter() the results, but that will still iterate. the thing is anything that grabs a bunch of elements and picks certain ones out is going to loop through them at some point. if you wanted to do it entirely via selectors (and depending on whether there is a appropriate a

[jQuery] Re: Select by containing text

2009-10-05 Thread ryan.j
You could just check the length of the :contains string against the .text() value in a .filter(function(){ ... }) On Oct 5, 9:20 am, Julijan Andjelic wrote: > Is there a way (selector) that would allow me to select an element by > exact mach of containing text. > > example: > > >     This is so

[jQuery] Re: select cannot check checkboxes' states

2009-09-24 Thread Xi Shen
yes, Jonathan's method works. thanks a lot ;) On Thu, Sep 24, 2009 at 5:28 PM, g...@iec wrote: > > $('[type="checkbox"]:checked').each(function(){}) > > This works. > > On Sep 24, 2:22 pm, "Jonathan Vanherpe (T & T NV)" > wrote: >> tried Sam Doyle's response yet? It looks like that might be t

[jQuery] Re: select cannot check checkboxes' states

2009-09-24 Thread g...@iec
$('[type="checkbox"]:checked').each(function(){}) This works. On Sep 24, 2:22 pm, "Jonathan Vanherpe (T & T NV)" wrote: > tried Sam Doyle's response yet? It looks like that might be the proper way. > $("input[type=checkbox]:checked").each(function(){}); > > Jonathan > > > > Xi Shen wrote: > > >

[jQuery] Re: select cannot check checkboxes' states

2009-09-24 Thread Jonathan Vanherpe (T & T NV)
tried Sam Doyle's response yet? It looks like that might be the proper way. $("input[type=checkbox]:checked").each(function(){}); Jonathan Xi Shen wrote: tried, not working ;( On Thu, Sep 24, 2009 at 5:03 PM, Jonathan Vanherpe (T& T NV) wrote: Xi Shen wrote: hi, i have a group of ch

[jQuery] Re: select cannot check checkboxes' states

2009-09-24 Thread Xi Shen
tried, not working ;( On Thu, Sep 24, 2009 at 5:03 PM, Jonathan Vanherpe (T & T NV) wrote: > > Xi Shen wrote: >> >> hi, >> >> i have a group of check boxes, and i want to iterator over all the >> checked ones. i use the following code, but without luck. >> >> $("input[type=checkbox][checked=tru

[jQuery] Re: select cannot check checkboxes' states

2009-09-24 Thread Jonathan Vanherpe (T & T NV)
Xi Shen wrote: hi, i have a group of check boxes, and i want to iterator over all the checked ones. i use the following code, but without luck. $("input[type=checkbox][checked=true]").each(function()...); can someone give a better solution? [checked=checked] ? -- Jonathan Vanherpe - Tal

[jQuery] Re: select cannot check checkboxes' states

2009-09-24 Thread Sam Doyle
$("input[type=checkbox]:checked").each(function()...); On Thu, Sep 24, 2009 at 9:59 AM, Xi Shen wrote: > > hi, > > i have a group of check boxes, and i want to iterator over all the > checked ones. i use the following code, but without luck. > > $("input[type=checkbox][checked=true]").each(funct

[jQuery] Re: select element "change" event doesn't bubble - does jQuery try to fix that?

2009-09-12 Thread Mike McNally
On Sat, Sep 12, 2009 at 11:30 PM, Karl Swedberg wrote: > > On Sep 12, 2009, at 12:57 PM, Mike McNally wrote: > > According to MSDN documentation, the "change" event from "select" > elements doesn't bubble, and that claim is borne out by my own > empirical observations.  Is there some trick I can

[jQuery] Re: select element "change" event doesn't bubble - does jQuery try to fix that?

2009-09-12 Thread Karl Swedberg
On Sep 12, 2009, at 12:57 PM, Mike McNally wrote: According to MSDN documentation, the "change" event from "select" elements doesn't bubble, and that claim is borne out by my own empirical observations. Is there some trick I can pull so that I can handle those events from a container element

[jQuery] Re: Select Span with Span Parent

2009-08-31 Thread Jules
Is this what you are after? $("span span") On Sep 1, 12:14 pm, a1anm wrote: > Hi, > > How would I select all spans which have a span as a parent? > > Thanks!

[jQuery] Re: Select Span with Span Parent

2009-08-31 Thread cherry.aus...@gmail.com
$( 'span span' ) :) On Sep 1, 3:14 am, a1anm wrote: > Hi, > > How would I select all spans which have a span as a parent? > > Thanks!

[jQuery] Re: select not catching mousedown event in IE and Chrome

2009-08-17 Thread hydrarulz
You need to catch the onchange event on the element On Jul 2, 4:59 pm, sso wrote: > This is the code I am using to test this.  In FF and Op. When I click > on an option in the select box, the alert pops up.  In IE and Chrome, > it doesn't seem to catch it at all. > >      $('.clickopt').mousedo

[jQuery] Re: Select Option add Class

2009-08-10 Thread Benn
this worked great! thank you muchly! On Aug 10, 11:19 am, Eduardo Pinzon wrote: > try this: > $("#custom1 option").each(function(){ >       var class = $(this).html(); >       addClass(class); > > }); > > Eduardo Pinzon > Web Developer > > 2009/8/10 Benn > > > > > This might have been resolved,

[jQuery] Re: Select Option add Class

2009-08-10 Thread Eduardo Pinzon
try this: $("#custom1 option").each(function(){ var class = $(this).html(); addClass(class); }); Eduardo Pinzon Web Developer 2009/8/10 Benn > > This might have been resolved, but I can't find a solution with my > search. I'm trying to add a class with the text of the option. Simple

[jQuery] Re: Select Option add Class

2009-08-10 Thread amuhlou
You can achieve this with a loop using the each method: $('select#custom1 option').each(function(){ var theText = $(this).html(); $(this).addClass(theText); }); However, with your current HTML, the class names will have spaces in them, which isn't valid.

[jQuery] Re: Select tags within a string using jQuery

2009-08-02 Thread cohq82
I am not really used to RegEx. If the return html is like this, how to add an attribute to .msg-item before parsing out? nvthoai hi Cách đây 10 giờ Trả lời Xóa

[jQuery] Re: Select tags within a string using jQuery

2009-08-02 Thread Stefano
try regular expressions http://www.w3schools.com/jsref/jsref_obj_regexp.asp http://www.w3schools.com/js/js_obj_regexp.asp or http://www.regular-expressions.info/javascript.html http://www.regular-expressions.info/javascriptexample.html maybe it helps ;) On 2 Aug., 21:13, cohq82 wrote: > Hi all

[jQuery] Re: Select Boxes - Pulling the currently selected string instead of value

2009-07-31 Thread James
Either of these should work: $("#choices option:selected").text(); $("#choices option:selected")[0].text; On Jul 31, 10:45 am, Zaliek wrote: > How do I retrieve the currently selected option string in a select box > instead of the value? > > String > > > Using > $("#choices").val(); > returns

[jQuery] Re: Select element fires hover.

2009-07-31 Thread jeff
I have just tried putting the search control into an iframe and the same instances occur! Double Dang! Is there no way to have selectable form fields in a hovered div? Please, any insight is greatly appreciated. On Jul 30, 11:06 am, jeff wrote: > I am trying to implement a div containing an adva

[jQuery] Re: select all grandchildren of a div

2009-07-23 Thread amuhlou
I'm not really sure what you are asking. Are you referring to the jQuery ui slider? If so, the jQuery UI google group is probably a better place to ask that question and search for threads where your question may have already been answered. http://groups.google.com/group/jquery-ui On Jul 23, 3:3

[jQuery] Re: select all grandchildren of a div

2009-07-23 Thread Krish
hi amuhlou, thank you for your quick response. with the same assumption is there any possibility to get all grandchildren in the handle property of jquery. On Jul 23, 12:11 pm, amuhlou wrote: > Assuming the grandchildren all have the class="grandchild" attribute, > you could use the find() me

[jQuery] Re: select all grandchildren of a div

2009-07-23 Thread amuhlou
Assuming the grandchildren all have the class="grandchild" attribute, you could use the find() method: $('div.parent').find(".grandchild") On Jul 23, 3:04 pm, Krish wrote: > Hey All, > > I have to select all my grandchildren of parent div. only the > grandchildren not either of children or gr

[jQuery] Re: Select List With Multiple Selections Hack

2009-07-06 Thread aquaone
What does this have to do with jQuery? O_o What you're talking about is basic PHP. On Mon, Jul 6, 2009 at 07:07, Shrimpwagon wrote: > > When using a select combo box that has multiple selections enabled, my > server was not seeing it as an array. It was only seeing it as a > single variable val

[jQuery] Re: select not catching mousedown event in IE and Chrome

2009-07-02 Thread Karl Swedberg
don't know about Chrome, but IE doesn't support onmousedown for option elements: from http://msdn.microsoft.com/en-us/library/ms536944%28VS.85%29.aspx ("onmousedown Event"): Applies To A, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, CUST

[jQuery] Re: select random div

2009-06-30 Thread James
If you do manage to be able to parse the content, you can use jQuery's eq() function to get a specific element's index: http://docs.jquery.com/Selectors/eq On Jun 30, 12:06 pm, "Cesar Sanz" wrote: > As the returned html is not yet part of the document until you append it, > you cannot use jquery

[jQuery] Re: select random div

2009-06-30 Thread Cesar Sanz
As the returned html is not yet part of the document until you append it, you cannot use jquery to parse it. You will need to parse the string returned by the server, or append to a div and then make all your stuffs.. - Original Message - From: "zendog74" To: "jQuery (English)"

[jQuery] Re: select box / - a way to wrap text?

2009-06-30 Thread sso
scratch the last part, text wrapper is the way. Actually nevermind. Setting the width does exactly what I need, delete this post at will. On Jun 30, 11:30 am, sso wrote: > Thats it. > How can I wrap text inside a select box?  or perhaps I could allow the > select box to flow over the div its

[jQuery] Re: select all values of a multiple select list

2009-06-24 Thread Charlie
actually I'm not really sure of *best* way on this one but can help steer you. I've only ever needed to use change() on selects without selecting all.Thre might be better suggesstions like blur or if "select all" is first there won't be a change, and it seems IE doesn't like $("option")

[jQuery] Re: select all values of a multiple select list

2009-06-24 Thread shaded
thanks, charlie, jquery feels like such a puzzle, and i get bits and pieces from everywhere. Can we take this to another level? what if i want to have a first element in the list, example --select all--, how do i set it so when this is selected, all values get selected. On Jun 23, 11:55 am,

[jQuery] Re: select all values of a multiple select list

2009-06-23 Thread Charlie
$("#yourSelect option").attr("selected","selected"); shaded wrote: is there a way to select all values of a multiple select list by default?

[jQuery] Re: Select/Unselect radio buttons

2009-06-15 Thread Nikola
Give the three master radio buttons unique ID's or classes. Then, upon clicking one of them you can add / remove classes and attributes... $('#masterRadioOne').click(function(){ ($('.radio1').is('.on')) ? $('.radio1').removeClass('on').attr ("checked",false) : $('.radio1').addClass('on').at

[jQuery] Re: select top level of nested structure

2009-06-11 Thread brian
Actually, I've just gotten it working. It's amazing what a dinner break can do for a stalled mind. As it turns out, I do, in fact, need to be able to sort the deeper list items. Luckily, a requirement is that they *not* be moved into a new list. I forgot to mention earlier that I'd tried using i

[jQuery] Re: select top level of nested structure

2009-06-11 Thread Charlie
one little addition to markup add an id ="list" to ul due to $sortable requirements          $("#section_list li:not('li ul li')").each( function(i) {             position= i+1 myId="foo_"+position     $(this).attr("id",myId);         });         $("#list").sortable();      

[jQuery] Re: Select box// onchange in niceform doesn't work !!

2009-05-29 Thread RG
I have the same problem with Niceforms 2.0, I have it working in 1.0 but 1.0 does not support multiple select so I tried 2.0 but am finding that the onchange event does not work. Tested on Google Chrome: 2.0.172.28 Mozilla Firefox: 3.0.10 On May 26, 7:40 am, Amit wrote: > Hi Guys

[jQuery] Re: select parent node in context

2009-05-28 Thread Ricardo
There is no ":parent" pseudo-selector that I know of. But there is a parent() method: $(this).parent().find('input[name^=subsequentProperty]'); If the input is a sibling of "this" you can take a shortcut: $(this).siblings('input[name^=subsequentProperty]'); On May 28, 6:40 am, lsblsb wrote: >

[jQuery] Re: select all a elements whose class attribute does not contain 'myclass'

2009-05-21 Thread aquaone
*= in attribute selectors is useful for when something contains a string. If you explicitly want anchors with a named class, select by the class instead, e.g. $("a.myclass"). If you wanted anchors that did not have a specific class, $("a:not(.myclass)"). If you explicitly want all anchors where the

[jQuery] Re: select only the father

2009-04-22 Thread gostbuster
thanks a lot again. On 22 avr, 13:47, Daniel wrote: > I'm very glad! > > On Apr 22, 6:38 am, gostbuster wrote: > > > Thank you very much! it works ! > > > thanks a lot ! > > > On 22 avr, 13:31, Daniel wrote: > > > > try this... > > > >                 $(".delete").hover(function(){ > > >    

[jQuery] Re: select only the father

2009-04-22 Thread Daniel
I'm very glad! On Apr 22, 6:38 am, gostbuster wrote: > Thank you very much! it works ! > > thanks a lot ! > > On 22 avr, 13:31, Daniel wrote: > > > try this... > > >                 $(".delete").hover(function(){ > >                         $(this).parent().css('background- > > color','red'); >

[jQuery] Re: select only the father

2009-04-22 Thread gostbuster
Thank you very much! it works ! thanks a lot ! On 22 avr, 13:31, Daniel wrote: > try this... > >                 $(".delete").hover(function(){ >                         $(this).parent().css('background- > color','red'); >                 }, function() { >                         $(this).paren

[jQuery] Re: select only the father

2009-04-22 Thread Zeeshan Khan
Daniel's Suggestion is simple & i think it might work for u. On Wed, Apr 22, 2009 at 4:31 PM, Daniel wrote: > > try this... > >$(".delete").hover(function(){ >$(this).parent().css('background- > color','red'); >}, function() { >

[jQuery] Re: select only the father

2009-04-22 Thread Zeeshan Khan
class "container" contains the CSS code right?if u assign ID to all of your parent div it'll be very helpful for u in this case & also in many other scenarios or you can create CSS design on the basis of IDs. On Wed, Apr 22, 2009 at 4:25 PM, gostbuster wrote: > > Hi, thank you for you answser. >

[jQuery] Re: select only the father

2009-04-22 Thread Daniel
try this... $(".delete").hover(function(){ $(this).parent().css('background- color','red'); }, function() { $(this).parent().css('background- color','white'); }); On Apr 22, 6:25 am, gostbuster wrote

[jQuery] Re: select only the father

2009-04-22 Thread gostbuster
Hi, thank you for you answser. Of course I could do that, expect that I'll have an undefined number of "container" div. That's why I gave them classes and no id ! Thank you On 22 avr, 13:17, Zeeshan Khan wrote: > Instead of call the parent you can call Only that DIV of which u want to > chang

[jQuery] Re: select only the father

2009-04-22 Thread Zeeshan Khan
Instead of call the parent you can call Only that DIV of which u want to change the background color $(document).ready(function(){ //action when the mouse is over : $("#delete").mouseover(function(){ // I select the .delete divs. //now i want to

[jQuery] Re: select change function

2009-04-21 Thread geh...@googlemail.com
thanks, everything is fine within safari, opera and internet explorer. within firefox, the container's background color is not changing yet. as background color firefox (osx) chooses preconfigured systemcolor, not the one specified in the option-fields style-sheet. bug in firefox?! On 21 Apr., 04

[jQuery] Re: select change function

2009-04-20 Thread James
Is there a reason you're running a $.each for the selected option? It seems there's only one possible selected option at once. $("select").change(function() { $selected = $(this).find("option:selected"); $("#result").css( 'background-color', $selected.css (

[jQuery] Re: select option hovering problem

2009-04-10 Thread Karl Swedberg
If you need to have this work in Internet Explorer, you're going to be very frustrated. The onmouseover event doesn't apply to option elements in IE. See http://msdn.microsoft.com/en-us/library/ms536949(VS.85).aspx (scroll down to Applies To section) Same goes for onmouseenter: http://msdn.m

[jQuery] Re: Select all last cells of all rows?

2009-04-09 Thread ryan.j
aah, skip that - you'd need to give each row an id and broaden the selector for that to work wouldn't you. On Apr 9, 3:01 pm, "ryan.j" wrote: > could you not just do $('tr td:last').click()? > > On Apr 9, 2:56 pm, MorningZ wrote: > > > I swear I've seen a post asking this before, one that I eve

[jQuery] Re: Select all last cells of all rows?

2009-04-09 Thread ryan.j
$("tr td:last-child").click(function () { alert("!"); }); On Apr 9, 3:01 pm, "ryan.j" wrote: > could you not just do $('tr td:last').click()? > > On Apr 9, 2:56 pm, MorningZ wrote: > > > I swear I've seen a post asking this before, one that I even > > participated in, but damned if i ca

[jQuery] Re: Select all last cells of all rows?

2009-04-09 Thread ryan.j
aah, to do it that way you'd need to assign each row an id and include a selector for each wouldn't you. On Apr 9, 2:56 pm, MorningZ wrote: > I swear I've seen a post asking this before, one that I even > participated in, but damned if i can find it > > given this table structure > > >     >  

[jQuery] Re: Select all last cells of all rows?

2009-04-09 Thread ryan.j
could you not just do $('tr td:last').click()? On Apr 9, 2:56 pm, MorningZ wrote: > I swear I've seen a post asking this before, one that I even > participated in, but damned if i can find it > > given this table structure > > >     >       >           One >           Two >           Three >  

[jQuery] Re: Select images instead of text

2009-04-06 Thread benoit v.
If anyone is interested, I found a solution to my problem here. http://ask.metafilter.com/16153/Images-in-HTML-select-form-elements Now I'm able to visually select images inside a form, that provides my PHP script the filename of the selected element. It's actually a play around with checkbox, no

[jQuery] Re: Select Last

2009-04-02 Thread Mauricio (Maujor) Samy Silva
I want to get the last in the _sub_ list. Here is what I've tried with no success. Ideas? $('.list li li:last a').addClass('last-li'); $('.list li ul li:last a').addClass('last-li'); $('.list li:has(ul) li:last a').addClass('last-li'); - $(

[jQuery] Re: Select elements with a prefix for id

2009-03-31 Thread Charlie Griefer
On Tue, Mar 31, 2009 at 8:30 PM, iceangel89 wrote: > > how can i select all elements with a prefix of "Lab" > > i have textboxes with ids like Lab1, Lab2, Lab3 ... $("textarea[id^='Lab']") http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue -- I have failed as much as I have s

[jQuery] Re: Select class="class1 class2" using jQuery

2009-03-18 Thread Klaus Hartl
http://www.w3.org/TR/CSS21/selector.html#class-html --Klaus On 19 Mrz., 00:04, Karl Rudd wrote: > Yes, it's standard CSS selector behaviour, so it's also standard > jQuery behaviour. > > Karl Rudd > > On Thu, Mar 19, 2009 at 6:32 AM, bill123 wrote: > > > I need to select an element like this:

[jQuery] Re: Select class="class1 class2" using jQuery

2009-03-18 Thread Karl Rudd
Yes, it's standard CSS selector behaviour, so it's also standard jQuery behaviour. Karl Rudd On Thu, Mar 19, 2009 at 6:32 AM, bill123 wrote: > > I need to select an element like this: > >     > > and I've found that both of the following work: > >    $(".class_a").filter(".class_1").css("backgr

[jQuery] Re: Select Issue

2009-03-12 Thread brightdad...@googlemail.com
I have added for each loop to supplement the return result from the php and it did the trick. On Mar 12, 1:23 pm, "brightdad...@googlemail.com" wrote: > I have gone through the autocomplete documentation and therefore > changed the code to look like this; > >             function selectItem(li)

[jQuery] Re: Select Issue

2009-03-12 Thread brightdad...@googlemail.com
I have gone through the autocomplete documentation and therefore changed the code to look like this; function selectItem(li) { findValue(li); } function findValue(li) { if( li == null ) return alert("No match!");

[jQuery] Re: Select All Elements with Class Name Beginning With String

2009-02-26 Thread James
Remove the @. It has be deprecated and no longer used. On Feb 26, 4:05 pm, cfdvlpr wrote: > This line worked for jquery 1.2.6: > > $('l...@class^=classname]') > > This doesn't work for version 1.3.2 > > Is there some other syntax that works?

[jQuery] Re: Select Box. Anyone?

2009-02-18 Thread Daniel
What exactly is it that you are looking for as far as a replacement? JQuery works great with the box. If you are looking for something visually different, more so than CSS can take care of, you can check out this one: http://www.brainfault.com/demo/selectbox/, if there is something more you are l

[jQuery] Re: Select all even row in table that are not with a specified class.

2009-02-11 Thread Ricardo Tomasi
Yes, you can. In doubt, just try it, it doesn't hurt :) $("table.font_quotazioni tr:odd:not(.highlight,.midlight)").addClass ("even"); $("table.font_quotazioni tr:odd:not(.highlight):not (.midlight)").addClass("even"); $("table.font_quotazioni tr:odd").not(".highlight, .midlight").addClass ("even

[jQuery] Re: Select all even row in table that are not with a specified class.

2009-02-11 Thread m.ugues
Is it possibile to add a condition in or to the not condition? jQuery("table.font_quotazioni tr:odd:not ('.highlight','.midlight')").addClass("even"); Kind regards Massimo Ugues On Dec 23 2008, 10:04 pm, aquaone wrote: > Sure. > $("table.font_quotazioni > tr:even:not('.midlight')")...http:

  1   2   3   4   5   >