andyjimmy Posted May 8, 2007 Share Posted May 8, 2007 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 More sharing options...
nogray Posted May 8, 2007 Share Posted May 8, 2007 try something like this document.getElementById('done').onclick=function(){ transport_query(data_id); } This should work on both browsers. Link to comment https://forums.phpfreaks.com/topic/50473-setattribute-workaround-for-ie/#findComment-248194 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.