<meta http-equiv="refresh" content="5;url=http://jquery.com"> <script type="text/javascript" src="/js/jquery.js"></script> <script type="text/javascript"> $(function(){ $("meta").attr("content","4;url= http://commadot.com"); }); </script> </head>
goes to commadot, not jquery! On 5/9/07, John Resig <[EMAIL PROTECTED]> wrote:
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 >
-- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ