This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
$.fn.readOnlyBlur = function() { | |
return this.each(function() { | |
if ($(this).is('input')) { | |
if ($(this).is('[readonly]')) { | |
var readonly_var=$(this).attr("readonly"); | |
$(this).removeAttr("readonly"); | |
$(this).blur(); | |
$(this).attr("readonly",readonly_var); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>jQuery UI Autocomplete - Scrollable results</title> | |
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> | |
<link rel="stylesheet" href="/resources/demos/style.css"> | |
<style> | |
.ui-autocomplete { |