Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>¿Necesitas más Lana?</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
  <script src="//code.jquery.com/jquery-1.9.1.js"></script>
  <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
  <link rel="stylesheet" href="/resources/demos/style.css">
  <script>
  $(function() {
    imgFldr = 'images/nameofthesubfolder/';
$("input[type='radio']").click(function() {
   $('#'+this.name).attr('src', imgFldr+this.value).attr('alt', 'newattribute');
});
    
  });
  </script>
  <style>
  .ui-tabs-vertical { width: 55em; }
  .ui-tabs-vertical .ui-tabs-nav { padding: .2em .1em .2em .2em; float: left; width: 12em; }
  .ui-tabs-vertical .ui-tabs-nav li { clear: left; width: 100%; border-bottom-width: 1px !important; border-right-width: 0 !important; margin: 0 -1px .2em 0; }
  .ui-tabs-vertical .ui-tabs-nav li a { display:block; }
  .ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active { padding-bottom: 0; padding-right: .1em; border-right-width: 1px; border-right-width: 1px; }
  .ui-tabs-vertical .ui-tabs-panel { padding: 1em; float: right; width: 40em;}
  </style>
</head>
<body>
  <form>
    <img id="radio_btn1" src="" />
<br />
  <input type="radio" name="radio_btn1" value='https://g.twimg.com/Twitter_logo_blue.png' />
  <input type="radio" name="radio_btn1" value='http://www.underconsideration.com/brandnew/archives/facebook_logo_detail.gif' />
  <input type="radio" name="radio_btn1" value='http://www.sanpatricio.com/wp-content/uploads/2014/04/instagram-logo-kgo.png' />
  <input type="radio" name="radio_btn1" value='http://assets.tumblr.com/images/logo_page/img_logo_bluebg_2x.png' />
  </form>
</body>
</html>
 
document.getElementById("hello").innerHTML = "Hello World - this was inserted using JavaScript";
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers