Help with Javascript Bug
$15-20 USD
Paid on delivery
Hi attached is a sample ASP with some javascript that does not seem to be working correctly. The page dynamically inserts some elements using the [login to view URL]("xxx") syntax. This part works ok, but other things do not. There is some javascript code included in the setAttribute statement for one of the dynamically added items, but this code does not fire. My guess is that maybe the new item is generated outside of the form? But it seems to be in there properly as evidenced by clicking on the Show All button. Is it simply javascript does not work for dynamically added items? In my example ASP page, there are only 3 buttons on the page that are of concern. 1. The button labeled "Button" - This one dynamically creates a button. 2. The newly created button "btn" - There is javascript in this button, but nothing happens. 3. The "Show All" button, this displays some HTML information about certain document elements. I added this because the "View Source" option does not include any dynamically added elements. In a nutshell, I need to be able to dynamically create screen items that the user wishes to add, and I need each of these items to support javascript. IMPORTANT: I am only looking for a bug fix, not an expensive complete re-write.
## Deliverables
working code example
## Platform
browsers
Project ID: #2870597