Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
  canvas {border: 1px solid black;}
</style>
</head>
  <div>
  </div>
<body>
    
</body>
</html>
 
var tf = document.createElement("select");
tf.setAttribute("type","option");
tf.setAttribute("name","_tf");
var txt = "Hello. '\"'This 'using slash";
tf.setAttribute("value",txt);
var arr = [
  {val : '1', text: 'One'},
  {val : 'xx', text: 'xx'},
  {val : '3', text: 'Three'}
];
var sel = $('<select>').appendTo('body');
$(arr).each(function() {
 sel.append($("<option>").attr('value',this.val).text(this.text));
});
 opcao = $('<option>').appendTo($('select')).val('"');
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers