阅读背景:

如何从javascript中的div内的动态下拉列表中获取选定的值

来源:互联网 

I am trying to get the selected value from a div element which is dynamically populated with a dropdown li. This is on an existing website so we use additional javascript to add listeners to the div. See attached code as example. When I click on "red s" area, I only get part of the html. Ideally I want the entire text "red shoes" which I only get if I click on the "hoes" area. How do I get the entire text of the li element which is clicked?I am trying to get the selected value from a di




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: