You can use the dereferencing operator, or the .get()
method to “Retrieve the DOM elements matched by the jQuery object.”
Examples:
txtArea[0].value = "something";
or:
txtArea.get(0).value = "something";
More Related Contents:
- Add a property to a JavaScript object using a variable as the name?
- What does [object Object] mean?
- Converting a JS object to an array using jQuery
- Remove array element based on object property
- JavaScript: filter() for Objects
- Why does typeof array with objects return “object” and not “array”? [duplicate]
- How to add an object to an array
- Filter array of objects with another array of objects
- Find and remove objects in an array based on a key value in JavaScript
- Using jQuery to compare two arrays of Javascript objects
- JavaScript equivalent of jQuery’s extend method
- jQuery: How to get the event object in an event handler function without passing it as an argument?
- How to get the hours difference between two date objects? [duplicate]
- break array of objects into separate arrays based on a property
- Find object having maximum value for the `id` property in an array of objects
- How to check null objects in jQuery
- Remove element from JS injected HTML
- Detecting input change in jQuery?
- how to get GET and POST variables with JQuery?
- Equivalent of String.format in jQuery
- Print content of JavaScript object? [duplicate]
- How do I send an AJAX request on a different port with jQuery?
- How to stop intense Javascript loop from freezing the browser
- Get computed font size for DOM element in JS
- How can I remove all CSS classes using jQuery/JavaScript?
- Pure Javascript – store object in cookie
- How to hide Bootstrap modal with javascript?
- How to pass two anonymous functions as arguments in CoffeScript?
- how to read json result in jquery?
- Trigger for span text/html on changed