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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.