Browser Independence issue Code Working for IE but not for Firefox and Chrome

前端 未结 2 997
一整个雨季
一整个雨季 2021-01-17 02:41

if i run the same code for IE every thing is fine i am getting the value of selectedId where as for firefox and chrome it is giving values Undefine.

-------         


        
2条回答
  •  梦毁少年i
    2021-01-17 03:41

    Try reading the selectedId as below. Use getAttribute method

    alert("the value of selected IDS="+e.getAttribute('selectedId'));

提交回复
热议问题