Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <select style="width: 500px;">
- <option value="1">
- This is a very long option, but it's cool, cause the select is also very long
- </option>
- </select>
- $(function() {
- $(".SecuritySelect")
- .mouseover(function(){
- $(this)
- .data("origWidth", $(this).css("width"))
- .css("width", "auto");
- })
- .mouseout(function(){
- $(this).css("width", $(this).data("origWidth"));
- });
- });
- position: absolute
- width: 500
- $('select#CourtId')
- .focus(function() { $('select#CourtId').css('position', 'relative').css('margin-right', '-300px').css('min-width', $('select#CourtId').css('width')).css('width', 'auto'); })
- .blur(function() { $('select#CourtId').removeAttr('style'); });
Add Comment
Please, Sign In to add comment