JQ turn $('#topspeed').change(function() into a condition

JQ turn $('#topspeed').change(function() into a condition

I want to replace

$('#topspeed').change(function(){

with a condition, something like the following, but working

if($("[id=topspeed]").is(":selected")){ 

How to do it?