0

I'm debugging my jQuery DataTable using Firebug. So, in the Firebub panel I see:

<div id="newspaper-b_length" class="dataTables_length">
<label>
Show
<select name="newspaper-b_length" size="1" aria-controls="newspaper-b">
entries
</label>
</div>

but I don't have this piece of code in my php files. How actually I can find these lines of code in my php files?

1
  • 1
    Why do you assume you can? I imagine these elements are generated by jQuery DataTable, so they won't be in your PHP script at all. Commented May 21, 2012 at 20:32

2 Answers 2

2

Those are additional wrappers created by datatables plugin to show entries drop down.

Most widget create wrappers/additional div to show their widget controls. Those div's are created by datatables plugin dynamically and so you will not find it in your php code.

Sign up to request clarification or add additional context in comments.

5 Comments

How can I manually change the style (ie color, font) for these wrappers?
@KlausosKlausos Take a look at datatables.net/styling/custom_classes If you couldn't find what you are looking for.. let me know what style you are trying to apply.
I'm applying media/css/demo_table_jui.css, but I cannot find newspaper-b_wrapper there.
@KlausosKlausos Can you exactly tell me what color/style you are trying to apply? The styling would probably come with the default css provided by datatable.css or it may use jquery.[..].css. You can always override it in your application css.
Oh, I found dataTables_wrapper. My mistake was that I was searching for DIV id rather than DIV class in the style sheet.
1

"Firebug's HTML tab shows you what the HTML looks like right now." as you can see here.
Probably it's being generated by other code php, js or html.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.