My Always-Up-to-Date VS Code Setup for Web Development

I鈥檝e gone through the setup and daily use of a number of editors over the years including most current popular ones for front end development (i.e. sublime, atom, and vs code) and for me VS code is the best choice for front end development at the moment. The team has put a lot of effort into making it a great javascript experience out of the box and it shows (VS code itself is written in typescript and the team uses vs code to build vs code) and with some additional work you can have the best experience while writing javascript....

June 29, 2019 路 updated March 22, 2023 路 3 min 路 Brandon Pugh

How to use jQuery .on() instead of .live()

One of the most used features of jQuery is the easy methods it provides to to attach event handlers to dom elements like this simple example: $('.submitButton').click(function() { validateForm(); }); It doesn鈥檛 get much easier than that. However, a lot of times we鈥檒l want to attach events to elements that were loaded after the initial page load such as from the result of an ajax request. This is where the ....

January 15, 2012 路 3 min 路 Brandon Pugh

Allow pasting multiple lines in IE textbox

You may have noticed before that if you try to paste more than one line of text into a textbox in Internet explorer it will on only paste in the first line and disregard the rest. Firefox and Chrome on the other hand will automatically paste all lines of the text onto the one line of the textbox. This issue came up in one of the projects I鈥檓 currently working on where we wanted users to be able to paste in a list of ID numbers they wanted to run a search on....

October 12, 2011 路 3 min 路 Brandon Pugh