[jQuery] Select element in form?

2009-10-11 Thread zephyr
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+ ])) formName: a form in my document textInputField: a input type=text in my document If I do this alert($(form [name= +formName + ]

[jQuery] How to select neighbouring elements

2009-08-16 Thread zephyr
Hi, I have this setup (pseudo code): formA table td checkbox select select select formB table td checkbox select select select The checkbox select select select part is included so it is identical in the 2 places (ie it is not possible to have different id's) What I want is that checking the

[jQuery] How to select neighbouring elements

2009-08-16 Thread zephyr
Hi, I have this setup (pseudo code): formA table td checkbox select select select formB table td checkbox select select select The checkbox select select select part is included so it is identical in the 2 places (ie it is not possible to have different id's) What I want is that checking the

[jQuery] Unable to refer to a select element

2009-04-18 Thread zephyr
Hi, I am trying to populate 3 selectboxes - one with years, months and dates. The problem is that I keep getting a Javascript error in Firebug. This is what I try: I have this select: select name=yearFrom style=visibility: hidden;/select // later I set the select property to true and I try to

[jQuery] Cannot call a function within the callback part of $.get in IE7

2009-03-23 Thread zephyr
Hi, I make Ajax ($.get) calls and in the calback part I call a function defined elsewhere. In FireFox this is no problem. When I checked in IE however I kept getting an error 'object expected'. It took a while to figure out that if I remove the _call_ to the function with the actual function

[jQuery] Cannot call a function within the callback in IE7 [2]

2009-03-23 Thread zephyr
Hi, I make Ajax ($.get) calls and in the calback part I call a function defined elsewhere. In FireFox this is no problem. When I checked in IE however I kept getting an error 'object expected'. It took a while to figure out that if I remove the _call_ to the function with the actual function

[jQuery] How to use a div as a placeholder for other divs?

2008-09-16 Thread zephyr
Hi, I have a div id=content that serves as a placeholder for text. The text are all like div id=about test test test /div div id=links link link link /div div id=contact [EMAIL PROTECTED] /div When the user clicks a link, I use it's id attribute value (about,contact or links). I use that

[jQuery] Re: How to add unique options to select?

2008-03-02 Thread zephyr
Ok, I found it: $(xml).find('province').each(function(){ if($(select +/[EMAIL PROTECTED]+$(this).attr('id')+])){ select.append(option value=+$(this).attr('id')++$ (this).attr('name')+/option); } should be $(province,xml).each(function(){ if($(select

[jQuery] How to select an element based on visibility

2008-02-23 Thread zephyr
Hi,I cannot get my finger behind this one: I have this HTML: p class=firstLineThis is the first line of the first paragraph/p pAnd here is some more text. Bladibladibla/p p class=firstLineThis is the first line of the secons paragraph/ p pAnd here is some more text. Bladibladibla/p p

[jQuery] Re: How to select an element based on visibility

2008-02-23 Thread zephyr
Thanks Karl, this works. Very instructive - didn't know the syntax of the is and ternary operator in jQuery. I'll check out learningjquery! Marc