# How to put onmousewheel=return(false) into \<%=select ...%\>?

**URL:** <https://www.ruby-forum.com/t/how-to-put-onmousewheel-return-false-into-select/145129>\
**Category:** Rails\
**Created:** [August 6, 2008, 9:33am UTC](https://www.ruby-forum.com/t/how-to-put-onmousewheel-return-false-into-select/145129 "2008-08-06T09:33:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomasalbert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/4bbf92/32.png) [@thomasalbert](https://www.ruby-forum.com/u/thomasalbert)\
**Post date:** [August 6, 2008, 9:33am UTC](https://www.ruby-forum.com/t/how-to-put-onmousewheel-return-false-into-select/145129/1 "2008-08-06T09:33:03Z")

</div>

Can anyone help me to put the javascript statement  
onmousewheel=return(false) into a rhtml view file inside a select- \<  
%=select …%\>

Thanks

---

<div class="post-metadata">

**Author:** ![thomasalbert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/4bbf92/32.png) [@thomasalbert](https://www.ruby-forum.com/u/thomasalbert)\
**Post date:** [August 6, 2008, 9:35am UTC](https://www.ruby-forum.com/t/how-to-put-onmousewheel-return-false-into-select/145129/2 "2008-08-06T09:35:59Z")

</div>

I found out how!

\<%= select :individual, :state, Individual::STATES, {}, {:onmousewheel  
=\> “return false”} %\>
