0

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"

5
  • did you try expanding some of those nodes in your console to see what the structure looks like? might help you out. Commented Sep 24, 2013 at 19:52
  • 2
    Looks like $(this).val() is what you want. Commented Sep 24, 2013 at 19:52
  • or even this.value. Commented Sep 24, 2013 at 19:57
  • I have edit my post, with .val, i retrieve only the first property value, so "7 rue". I need the second, on the line "0" Commented Sep 24, 2013 at 20:24
  • We need a bit more to go on. You said you get "only the first property value" but what other values are there? Have you split the address across elements? Can you post some HTML to clarify? Commented Sep 24, 2013 at 21:14

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

1 Comment

no, with .val() i have juste the first property value : "7 rue"

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.