I want to update the contents of an element depending if it is a form element who's value can be set or if it is just an element who internal text can be set. How could I distinguish whether to use val() or text() on the fly?
- [jQuery] Using val() vs text() AsymF
- [jQuery] Re: Using val() vs text() Hamish Campbell