[jQuery] Re: Form set to display:none isn't updating on page load

2008-06-19 Thread functionasform
Nevermind, I found conflicting code elsewhere in my doc that was causing this. On Jun 18, 10:09 pm, functionasform <[EMAIL PROTECTED]> wrote: > I'm using the following code to plug empty input fields' "alt" attributes in > as their values as soon as the page i

[jQuery] Form set to display:none isn't updating on page load

2008-06-19 Thread functionasform
I'm using the following code to plug empty input fields' "alt" attributes in as their values as soon as the page is ready: $(":text[alt][value=''],textarea[alt][value='']").each(function(){ $(this).attr("value",$(this).attr("alt")); }); The problem is, it's not working on the input