jQuery Get Selected Option From Dropdown

前端 未结 30 3319
梦如初夏
梦如初夏 2020-11-22 02:56

Usually I use $(\"#id\").val() to return the value of the selected option, but this time it doesn\'t work. The selected tag has the id aioConceptName

30条回答
  •  抹茶落季
    2020-11-22 03:34

    Usually you'd need to not only get the selected value, but also run some action. So why not avoid all the jQuery magic and just pass the selected value as an argument to the action call?

    
    

提交回复
热议问题