Jump to content

Break out and in of div


dotkpay

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/215562-break-out-and-in-of-div/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.