[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 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 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 = $(span/span).html(selection).addClass (selected); // append/set this '$spn'

[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: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head script

[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 span tag... that's why i added as a comment: // append/set this '$spn' inside another DOM object On Jan 18, 12:29 pm, Mircea i...@amsterdamsat.com wrote: Thanx for the code. It does not work to me. I am a newbye is

[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
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 i...@amsterdamsat.com wrote: I've added $(p).append(spn) It ads only the text spn at the bottom of the text. I

[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 Scott Sauyet
On Jan 18, 11:46 am, Mircea i...@amsterdamsat.com 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: pIt's a strongvery difficult problem/strong

[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 scott.sau...@gmail.com wrote: pIt's a         strongvery /strong typo: strongdifficult /strong -- Scott

[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-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 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-16 Thread CMI_Guy
StephenJacob, Sloppy fix. But works. script type=text/javascript $(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;

[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 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-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 p...@hearwhere.com wrote: Can you give a bit more detail? Is the submit not firing? or

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 items

[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 amos.l.k...@gmail.com wrote: Try tying in to the click event

[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

[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 :)

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

2010-01-02 Thread Steffan A. Cline
Jan 2010 13:42:05 -0800 (PST) To: jQuery (English) jquery-en@googlegroups.com 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

[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
Subject: [jQuery] Re: Select with different fonts for each element 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

[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
-To: jquery-en@googlegroups.com Date: Sat, 2 Jan 2010 15:34:30 -0800 (PST) To: jQuery (English) jquery-en@googlegroups.com 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

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

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

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

2009-12-05 Thread MorningZ
Try $(select[name='kitten3']).append('option value=' + id_array[i] + '' + group_array[i] + '/option); On Dec 5, 12:33 pm, jabberwok neillha...@gmail.com 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

[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 chq...@yahoo.com 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.  

[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 michaell...@gmail.com wrote: Try this:

[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 ict.aarongus...@gmail.com 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

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

2009-10-23 Thread jchambers
Give this a try... script type=text/javascript $(document).ready(function(){ $('select').change(function(){ var key = $(this).parent().parent().find('input').val(); var v = $(this).val(); $('#MSG').html( key +'BR'+ v ); }); }); /script body table tr tdinput

[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

[jQuery] Re: Select element in form?

2009-10-11 Thread RobG
On Oct 12, 7:12 am, zephyr marc.at.comp...@gmail.com 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 all class not keyword_type_A, please help

2009-10-09 Thread Charlie Griefer
First off, I'd add a ul around those li 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

[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
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 julijan.andje...@gmail.com wrote: Is there a way (selector) that would allow me to select an element by exact mach of containing text.

[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 davidshe...@googlemail.com 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.

[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 -

[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) jonat...@tnt.be 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.

[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) jonat...@tnt.be wrote: Xi Shen wrote: hi, i have

[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) jonat...@tnt.be 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 Xi Shen
yes, Jonathan's method works. thanks a lot ;) On Thu, Sep 24, 2009 at 5:28 PM, g...@iec abhi.pur...@gmail.com wrote: $('[type=checkbox]:checked').each(function(){}) This works. On Sep 24, 2:22 pm, Jonathan Vanherpe (T T NV) jonat...@tnt.be wrote: tried Sam Doyle's response yet? It

[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 via

[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 k...@englishrules.com 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

[jQuery] Re: Select Span with Span Parent

2009-08-31 Thread cherry.aus...@gmail.com
$( 'span span' ) :) On Sep 1, 3:14 am, a1anm alanmoor...@gmail.com 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 Jules
Is this what you are after? $(span span) On Sep 1, 12:14 pm, a1anm alanmoor...@gmail.com wrote: Hi, How would I select all spans which have a span as a parent? Thanks!

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

2009-08-17 Thread hydrarulz
You need to catch the onchange event on the select element On Jul 2, 4:59 pm, sso strongsilent...@gmail.com 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.  

[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 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 bennmey...@gmail.com 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

[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 edcpin...@gmail.com wrote: try this: $(#custom1 option).each(function(){       var class = $(this).html();       addClass(class); }); Eduardo Pinzon Web Developer 2009/8/10 Benn bennmey...@gmail.com This

[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

[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? li class=msg-item div class=msg-avatar a class=noborder-img href=/nvthoaiimg src=http:// kuckustorage.blob.core.windows.net/kuckuimages/53a2ceb8-de2c-4601-a862-

[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 jeffreykarbow...@gmail.com wrote: I am trying to

[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 zali...@gmail.com wrote: How do I retrieve the currently selected option string in a select box instead of the value? select id=choices option

[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 senthil@gmail.com wrote: Hey All, I have to select all my grandchildren of parent div. only the grandchildren not either of

[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 amysch...@gmail.com wrote: Assuming the grandchildren all have the class=grandchild attribute, you could

[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,

[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 shrimpwa...@gmail.com 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

[jQuery] Re: select option 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,

[jQuery] Re: select box / option - 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 strongsilent...@gmail.com wrote: Thats it. How can I wrap text inside a select box?  or perhaps I could allow the select box to

[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 n8cs...@gmail.com To:

[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 the.email.tr...@gmail.com wrote: As the returned html is not yet part of the document until you append it,

[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-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

[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) :

[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(); $("button").click(function() { var

[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

[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

[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

[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 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 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 khan.zeesha...@gmail.com wrote: Instead of call the parent you can call Only that DIV of

[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

[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 jeremyescol...@gmail.comwrote: Hi, thank you

[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 dcosta...@gmail.com wrote: try this... $(.delete).hover(function(){ $(this).parent().css('background- color','red'); }, function() {

[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 dcosta...@gmail.com wrote: try this...                 $(.delete).hover(function(){                         $(this).parent().css('background- color','red');                 }, function() {                        

[jQuery] Re: select only the father

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

[jQuery] Re: select only the father

2009-04-22 Thread gostbuster
thanks a lot again. On 22 avr, 13:47, Daniel dcosta...@gmail.com wrote: I'm very glad! On Apr 22, 6:38 am, gostbuster jeremyescol...@gmail.com wrote: Thank you very much! it works ! thanks a lot ! On 22 avr, 13:31, Daniel dcosta...@gmail.com wrote: try this...                

[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.,

[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:

[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 morni...@gmail.com 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 table    thead       tr           thOne/th          

[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 morni...@gmail.com 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
$(tr td:last-child).click(function () { alert(!); }); On Apr 9, 3:01 pm, ryan.j ryan.joyce...@googlemail.com wrote: could you not just do $('tr td:last').click()? On Apr 9, 2:56 pm, MorningZ morni...@gmail.com wrote: I swear I've seen a post asking this before, one that I even

[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 ryan.joyce...@googlemail.com wrote: could you not just do $('tr td:last').click()? On Apr 9, 2:56 pm, MorningZ morni...@gmail.com wrote: I swear I've seen a

[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,

[jQuery] Re: Select Last li

2009-04-02 Thread Mauricio (Maujor) Samy Silva
I want to get the last a 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 iceange...@gmail.com 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

[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 bi...@ssec.wisc.edu wrote: I need to select an element like this:    div class=class_1 class_a/div and I've found that both of the following work:    

[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 karl.r...@gmail.com 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 bi...@ssec.wisc.edu wrote: I need

[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 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 brightdad...@googlemail.com wrote: I have gone through the autocomplete documentation and therefore changed the code to look like this;            

[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 nathan7...@gmail.com 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 select 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

[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 aqua...@gmail.com wrote: Sure. $(table.font_quotazioni

[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); On Feb

[jQuery] Re: select inside an object

2009-02-10 Thread introvert
Thanks for help! On Feb 10, 2:12 am, Mike Alsup mal...@gmail.com wrote: $(form).('select')[0].selectedIndex = 2; But this wont work. What am I doing wrong? How should I use object subselectors? $(form).find('select');

[jQuery] Re: Select element based on a value of its child element

2009-02-09 Thread Adrian Lynch
Cheers all. By the way Stephan, I'm gonna steal your sig! By(e) Adrian :OD On Feb 6, 9:16 am, Stephan Veigl stephan.ve...@gmail.com wrote: Hi, according to another thread in this group (http://groups.google.at/group/jquery-en/browse_thread/thread/2115a6c8...) there is already a ticket for

  1   2   3   4   >