a collection of miscellaneous projects of Paul Philippov

Javascript Useful Tips


How to delete first parent DIV with given CSS-class (.myclass)


How to avoid IE quirks

$('#element').append(new Option(name, value, true, true));

It does not work in IE. Use following code instead:

$('#element').append('<option value="'+value+'">'+name+'</option>');

How to install nodejs

$ curl -sL | sudo -E bash -
$ sudo apt-get install -y nodejs