change this test

by ostapische

HTML

<div id="parent">
    <select id="select">
        <option>1</option>
        <option>2</option>
    </select>
</div>

JavaScript

$( "#parent select" ).change( function() {
    $( "body" ).append( $( "<p>" + this.id + "</p>" ) );
} );