Async functions with AngularJS

The best feature that I have encountered with AngularJS is programming async functions. The best example of using async functions is the $http service. To make a web request, the following javascript code can be used:

The $http function

Javascript inheritance in Knockout ViewModels

Knockout provides an elegant way of updating the user interface using Javascript View models. Javascript has an inheritance model. With that, we can create a hierarchy of classes. Consider the following HTML with Knockout bindings.

We use a simple

Set RadioButton value using jQuery

Setting RadioButton using jQuery should be simple. But, there is a small trivia about it. Consider a simple radiobutton group called Options which has values of Yes and No.

If you want to set the initial value of Option