[jQuery] Updating select content

2008-03-31 Thread Minh
I'm trying to improve the speed of my script which is currently using html() to replace content of a select element. The updateSelectOptions() method take an array and create a string of options to replace the select element. function updateSelectOptions(aOptions, fieldID) {

[jQuery] Re: Sticky Footer

2007-10-31 Thread Minh
Some layout examples with footer always at the bottom. http://www.pmob.co.uk/temp/3colfixedtest_4.htm

[jQuery] Re: Unselect text

2007-09-14 Thread Minh
One thing I've noticed is that this is only happening in IE 6 and not FireFox. On Sep 13, 11:00 am, Minh [EMAIL PROTECTED] wrote: I have the following script to auto select the text in a input field on focus. $([EMAIL PROTECTED]'text']).focus(function(){ if($(this).val().length 0

[jQuery] Unselect text

2007-09-13 Thread Minh
I have the following script to auto select the text in a input field on focus. $([EMAIL PROTECTED]'text']).focus(function(){ if($(this).val().length 0){ this.select(); } }); On blur is there a way in can unselect the selected text?

[jQuery] attr({'type':'hidden'}) in IE6

2007-08-26 Thread Minh
Getting an error when I tried to set a input attribute to hidden in v1.1.2, v.1.1.3.1 and v1.1.4. Using $ (#inputID).attr({'type':'hidden'}) and $ (#inputID).attr(type,hidden).

[jQuery] Re: attr({'type':'hidden'}) in IE6

2007-08-26 Thread Minh
Stephan thanks for the explanations and Karl thanks for the alternative solution. Erik - I have a form and after the user enter a value then it goes through Ajax validation. If it's validated then I need to disabled or hide it so the user can't edit it. Problem with disabled is that when the

[jQuery] Re: attr({'type':'hidden'}) in IE6

2007-08-26 Thread Minh
Erik- Nope I'm just looking for a way to stop the user from editing the field. Setting it to readonly is good and the css will be a nice visual cue. Thanks. On Aug 26, 11:19 pm, Erik Beeson [EMAIL PROTECTED] wrote: Ajax validation. If it's validated then I need to disabled or hide it so