JQuery val() does not work for textarea in Opera

后端 未结 10 1053
盖世英雄少女心
盖世英雄少女心 2021-01-12 11:33

I am displaying a modal dialog using jQuery. This dialog has a textarea control on it. But while submitting this dialog, the value of this textarea

10条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-12 12:03

    In opera for getting the value or a textarea works only:

    document.getElementById("description").value;

    strange is that $("textara#description").val("") works (set method)

提交回复
热议问题