I want to add input text in bootstrap tree view where user can key in value on this field. But, I could not type in input field created in tree view. How to define input field in boostrap treeview data object? I have tried using "html":"<input type='text'>" and it did not work too.
<html>
<head>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-treeview/1.2.0/bootstrap-treeview.min.css" rel="stylesheet" type="text/css" />
<script src="https://code.jquery.com/jquery-2.1.1.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-treeview/1.2.0/bootstrap-treeview.min.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
example_json=[
{
"text": "Q1",
"nodes": [
{
"text" :"<input type='text'>",
//"html" :"<input type='text'>",
}
]
}
];
$('#myTree').treeview({data: example_json});
})
</script>
</head>
<body>
<div id="myTree"></div>
</body>
</html>
Thanks in advance