kfir91 Posted June 18, 2009 Share Posted June 18, 2009 ok i have js code .. in explorer its ok the js is : var year = document.getElementById('year').value; in explorer year return "2009" and in firefox return "undefined" the div is : <td class="month"><span id="year" value="2009">2009</span></td> what the problem ? Quote Link to comment Share on other sites More sharing options...
ted_chou12 Posted June 18, 2009 Share Posted June 18, 2009 I dont know if value attributes work with span, but u can try: year = document.getElementById('year').innerHTML; Also try removing the var. see if this works, good luck Ted Quote Link to comment Share on other sites More sharing options...
kfir91 Posted June 18, 2009 Author Share Posted June 18, 2009 ok tnx inner work solve 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.