dotkpay Posted October 10, 2010 Share Posted October 10, 2010 Hello, Am writing an html script that contains javascript as well. The javascript auto refreshes a certain <div> section in the html every 3 seconds. It all works out fine but the problem is that I have a form of radio buttons inside that <div> section that are not supposed to refresh or else it will inconvenience the users as they will have to check the buttons every now and then. Is there an html tag that I can place on the form so that it won't inherit the properties of the parent <div> section. To be exact, is there a tag that can break out and in of a <div> section so that even the code after the form(</form>) but before the </div> will still refresh. Only the form area (between <form...> & </form>) should not refresh. Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/215562-break-out-and-in-of-div/ Share on other sites More sharing options...
haku Posted October 11, 2010 Share Posted October 11, 2010 Not exactly. But what you can do is assign the form to a variable, create your new div and contents, insert the form into the new div, and replace the old div with the new one. Either that or you can grab the variables of the form, recreate the form in your new div, and set the values to be the values already selected by the user. Moving to javascript forum. Quote Link to comment https://forums.phpfreaks.com/topic/215562-break-out-and-in-of-div/#findComment-1120963 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.