Question: I want to obtain the remote client ip by javascript, not querying any external ip resource pools. how could i get the remote ip address, just like the way i get appName by `navigator.appName` 

also like the ways as follows:

PHP:`<?php echo $_SERVER["REMOTE_ADDR"]; ?>`

NODE.JS: `req.connection.remoteAddress`

so green with javascript, and im trying to google with some keywords. yet i still can't find the result i want. any guy here could share his solution of the same desired scene? any tips or suggestions are welcome.

platform:chrome, firefox

Answer: 
If you want to use the most current value of the drop-down anywhere in your code, you can just reference it like this:

```
$('#test').val()

```

I've removed the `:selected`, because that's not necessary; `.val()` will give the right value.
You might use custom events to do something based on that event?

Example:

```
$('#test').change(function () {
    $('mysubscriberselectorshere').trigger('gettweet');
});

// do something based on the custom event
$('mysubscriberselectorshere').on('gettweet', function {
    // do good stuff here
    alert($('#test').val());
});

```