[jQuery] Re: Everyone knows how to manipulate a SELECT with jQuery??

2008-09-07 Thread MorningZ
" If you don't use jQuery for the task, you my have to assure by yourself that the code will work under all the browsers." jQuery does a lot of things, but it doesn't do close to everything... not even close... it's not the magic bullet for cross-browser and in this particular case of manipulat

[jQuery] Re: Everyone knows how to manipulate a SELECT with jQuery??

2008-09-07 Thread etnas
Ok, this is exactily what I want. It's true, sometimes 'simple' javascript may be the solution. However, I'm trying to write all the javascript via jQuery but now, I'm starting to see that, possibly, this way is not the best. Thanks for all! On 7 sep, 00:10, MorningZ <[EMAIL PROTECTED]> wrote:

[jQuery] Re: Everyone knows how to manipulate a SELECT with jQuery??

2008-09-07 Thread Tzury
@ Lukas && MorningZ If you don't use jQuery for the task, you my have to assure by yourself that the code will work under all the browsers. On Sep 7, 1:39 am, Lukas Polak <[EMAIL PROTECTED]> wrote: > you don't need to use jQuery. I've just been solving problem about how > can I get value of SELE

[jQuery] Re: Everyone knows how to manipulate a SELECT with jQuery??

2008-09-06 Thread Lukas Polak
you don't need to use jQuery. I've just been solving problem about how can I get value of SELECT by jQuery and I've realized that there is another, easier path. Just use simple JS: function getID() { return document.getElementById('test').selectedIndex; // this command find out index of ac

[jQuery] Re: Everyone knows how to manipulate a SELECT with jQuery??

2008-09-06 Thread MorningZ
Sometimes simple javascript is the way (other than wiring up the events anyways) Quick code (and tested) here http://paste.pocoo.org/show/84601/ i *think* that's what you were after