Jack, The correct jQuery syntax is as follows:
var chk1 = $("#city").val() + "*"; > var s = '<iframe name="cwindow" style="border:0px solid purple" width=980 > height=1500 src="s30.php?id=' + chk1 + '"><\/iframe>'; > The $.get() function [http://docs.jquery.com/Core#get.28.29] returns the matched elements as an array of DOM objects, so $("#feeds").get() will give you an array with a single DOM element - that with the ID 'feeds' (unless it doesn't exist, in which case you'll get an empty array). HTH, --rob On 8/7/07, Jack <[EMAIL PROTECTED]> wrote: > > > Hello everyone, > > I want to translate this > > var chk1 = document.getElementById('city').value + '*' ... > var string= '<iframe name="cwindow" style="border:0px solid purple" > width=980 height=1500 src="s30.php?id=' + chk1 + '"><\/iframe>'; > > into > > $("#feeds").get(chk1); or $("#feeds").get("s30.php?id=' + chk1 + '"); > or $("#feeds").get("s30.php", { id: chk1 }) > > Which jquery expression is correct? > > Than you for help > > -- Rob Desbois Eml: [EMAIL PROTECTED] Tel: 01452 760631 Mob: 07946 705987 "There's a whale there's a whale there's a whale fish" he cried, and the whale was in full view. ...Then ooh welcome. Ahhh. Ooh mug welcome.