Clément Andraud
Clément Andraud

Reputation: 9269

Access to a property value with an object

I'm on an event .change() with jQuery.

I have $(this) and the console.log($(this)) show me :

So, I need to retrieve the value property value. In my example, I need to retrieve "7 Rue de Rivoli, Paris, France".

How can I do that?

Edit : With .val(), i have just the first property value "7 rue"

Upvotes: 0

Views: 47

Answers (1)

Mat Richardson
Mat Richardson

Reputation: 3606

$(this).val() should do the trick.

Upvotes: 2

Related Questions