Chris Tate-Davies

An archive of helpful tit bits of information for development, and probably some stuff that is incomplete, wrong or boring…

Sorting a SELECT with JQuery

Just a simple function to sort an already populated list. Obviously it would be easier to sort before populating, but there are the odd occasion where this is more complicated than you thought. Requirements : JQuery var selectOptions = $(“#selectId option”); Then, we just run the sort command on the options array – and this [...]

TabIndex in HTML

TabIndex is an attribute to HTML elements that tells the browser which control takes focus next when TAB is pressed. <input id=”one” tabindex=”3″ /> <input id=”two” tabindex=”1″ /> <input id=”three” tabindex=”2″ /> <input id=”four” tabindex=”4″ /> Here, once the page is loaded, the first TAB press will set focus to input two, and then subsequent [...]

  • Chris Tate-Davies

    Hello there. This is my little "repository" on the world wide web. Its for nothing more than documenting things that I might need again in the future. You could describe it as an extension to my memory.

    Also an online collaboration of my thoughts through the day. I'll try to keep the real random stuff out and keep the blog on course.

    Thanks for stopping by... Hope you find what you're looking for...

  • Tags