Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

149
Views
Define input field in bootstrap treeview data object

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

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!