I want to replace

$('#topspeed').change(function(){
with a condition, something like

if($("[id=topspeed]").....
How to do it?


Here's the HTML

<select id="topspeed" >
<option data-icon="arrow-u" data-iconpos="top" >- SELECT -</option >
</select>