Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.