$("#keyword-content").html()
Produces
<p>
javascript
</p>
<p>
ruby
</p>
<p>
python
</p>
How can I convert this to ["javascript", "ruby", python"] ?
You can use the map method:
var arr = $('#keyword-content p').map(function(){
return $(this).text()
}).get()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With