Zeradin Posted March 24, 2010 Share Posted March 24, 2010 why doesn't this work $("#add_domain").click(function(){ $("div#dom_entry").append('<div class="entry_field" id="dom_entry">Domain Name:<br />http://<input type="text" name="domain_name'+ num_domains +'" id="domain_name'+ num_domains +'" onKeyPress="return nogarbageone(this, event)" /></div>'); num_domains++; it just spits out num_domains like it's text. please advise. thanks Quote Link to comment https://forums.phpfreaks.com/topic/196414-including-a-variable-in-jquery-append/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.