
28th August 2025 MySQL No comments
11th July 2016 JavaScript and jQuery No comments
Here, Try doing it like this :
var availableTags = [
"Perl",
"PHP",
"Python",
"Ruby"
];
$('input#mainSearchBox').autocomplete({
source: availableTags,
minLength: 0
});
$('input#mainSearchBox').autocomplete("disable");
$('input#mainSearchBox').keyup(function() {
var value = $('input#mainSearchBox').val();
var last = value.substr(value.length - 1);
if (last == "*") {
var valToSearch = value.substr(0, value.length - 1);
$('input#mainSearchBox').autocomplete("enable");
$('input#mainSearchBox').autocomplete("search", valToSearch);
} else {
$('input#mainSearchBox').autocomplete("disable");
}
});
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<input type="text" name="test" id="mainSearchBox">
References :
Have a look at :
What I have done :
autocomplete on the textbox and then disabled it.*,a. if it is, then enable autocomplete and force search on the text-box, with the input value without *.
b. If it is not, then disable the autocomplete.
25th June 2016 Welcome page No comments
Here we go, finally I established my blog, or actually “my free space” as I love to call it. 😉
I established this blog in order to publish code related articles, code hints, code workarounds and tips and tricks.
Here’s a small brief about me ( not small enough 😀 ).
It’s me Said Abdul Aziem Mohamed, a Webmaster Manager at DMG Group. I have a passion for User Experience and Web Development.
Everything I know about UI, UE, CSS, HTML, jQuery, PHP and MySQL was all self taught by looking online and buying books and video tutorials related to UX and Web Development. I have been continuously employed since high school and throughout college, which helped ramp me to my current positions at DMG. I’m also in love with my current position at DMG as Webmaster Manager.
I am discovering that I seriously enjoy user flow, User Experience and Web Development, and would like to transition my career towards this wire-framing and development path.
I love figuring out what makes users tick and click, also I adore developing easy to use and smooth back-ends.
I also am getting serious about my Web Design, so feel free to message me if you would like a web design, psd to html/css or anything else! I would currently like to learn (or get to know better): User Experience Research, SASS, HTML 5, jQuery/jQuery-UI, JavaScript, AJAX, IOS Development. ——-
Interesting Points of Discussion ——-