1 2 3 4 5
$('input').focus(function(){
this.select();
});
1 2 3 4 5
$('input').focus(function(){
this.select();
});
[UPDATED to allow multiple instances]
[UPDATED bug fix]
Hello everyone. The select tag that comes with html is pretty useful, but once in a while, one of your clients complains that it’s fugly. So you need to makeĀ a custom one. And that’s what i just did. Damned clients!
Requirements:
To do this you need to create a file called customSelect.ctp in your app/views/elements folder(Of course you don’t NEED cakephp to use this.).
And the content said file would be(This example is for a category select menu.):
Read More »
Notes: