isn't that because you're still referring to the old value in 'meta'?

You need to call it again before you refer to it in the second alert:
meta = $("meta").attr("content");

--John

On 5/9/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
<meta http-equiv="refresh" content="200;url=http://jquery.com";>

$(document).ready(function(){
   var meta = $("meta").attr("content");
   alert(meta);  //results in 200;url= http://jquery.com

  $("meta").attr("content","500;url= http://commadot.com";);
   alert(meta); //results in same as first
  });

Good news.  The first alert works.
Bad news.  The second one doesn't.

Any ideas?

Glen

Reply via email to