Suppose you have a textarea (id="fred"
) that appends (.append()
) or replaces (.html()
) another element. The textarea's submit button is called via delegate to send the modified text blurb in the textarea... How do you select the modified tex开发者_如何学编程tblurb, as opposed to what was originally put in the textarea via the first delegate?
mea culpa... val()
does the trick
精彩评论