javascript - Get the exact child Table using Jquery -


I have a condition here ... I have content1 and content2 of the two div, each div has a table too. .. so I can get every table like this

  $ ("# content1 table") or $ ("# content2 table")   

, But I like it

  var x = "# content1" or "# content2"   

then something like that

 < Code> $ (x "table")   

Pass the ID in a variable and get the table ... any solution?

The answer is in the example given by you. Just have to modify it a bit.

  var x = "# content1"; // Parent's name can be $ $ $ _ (x + "table")   

Hope that helps.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -