Jump to content

setAttribute workaround for IE


andyjimmy

Recommended Posts

Hey Guys,

 

Man IE has to stop being so crap.

 

document.getElementById('done').setAttribute("onClick","transport_query('" + data_id + "');");

 

The done element is a button that needs to have the value that is sent to the function transport_query. FF works great... IE doesn't

 

Does someone have a simple workaround that either works for both, or just works for IE (and i can make a switch depending on the browser)

 

Thanks in Advance.

Link to comment
https://forums.phpfreaks.com/topic/50473-setattribute-workaround-for-ie/
Share on other sites

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.