DataTables / DataTables/Plugins

bootstrap dropdown is not working

Open
#55 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Hi,

I tried your bootstrap for datatables in index.html

    <script type="text/javascript" language="javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" language="javascript" src="dataTables.bootstrap.js"></script>
    <script type="text/javascript" language="javascript" src="http://cdn.datatables.net/1.10-dev/js/jquery.dataTables.min.js"></script>

This code
[code]

Action
  • Action
  • Another action
  • Separated link
[/code] it showing blue button, when I click it, it does not work, in the console I got this error

Uncaught SyntaxError: Unexpected token < dataTables.bootstrap.js:6

Thanks, your help is appreciated.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the script and stylesheet references in index.html, especially dataTables.bootstrap.js, and reproduce the dropdown behavior using the provided markup. Inspect the console error at dataTables.bootstrap.js:6 and verify that the dropdown works without the reported syntax error.

Written by the indexing model from the issue text.

Assessment

Tech stack
bootstrap, javascript, jquery
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.