Sunday, January 25, 2015

Basic Temeprature Converter - Radio Buttons - Javascript Programming

Hello everybody, Today I am focusing on using the radio buttons for the Temperature converter which we discussed in the earlier post. In this post well convert 'from celsius to fahrenheit' and also 'from fahrenheit to celsius' by using radio buttons. Below is the video to create radio buttons and also programming it..

I this video, you will be learning:

  • Create radio button
  • Enabling and Disabling Checking of Radio Button 



Description of the video: 

The radio button is created using HTML tag <input type='radio'> as you could see from the video. Similarly it is also referenced by using an 'id'. Thus by using 'document.getElementById', the selection of radio button can enabled or disabled by setting it to true or false respectively.

To disable radio button, document.getElementById('id').checked=false

That's all for now. Hope you like it..See you in next post.

Cheers
Sravan

No comments:

Post a Comment