php - HTML and Clickable table cell -


I need to create a cell in the clickable HTML table. When this event occurs, a pop- Up or window is shown with some information. My current HTML code here:

  & lt; Table class = "table 1" & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; Th scope = "colonel" & gt; AAAA & lt; / Th & gt; & Lt; Th scope = "colonel" & gt; BBBB & lt; / Th & gt; .... & lt; / Tr & gt; & Lt; / Thead & gt; & Lt; Tbody & gt; & Lt ;? Php $ mystring = ""; ... resonate '& lt; Td scope = "line" style = "width: 300px" & gt; ' $ Mystrin '& Lt; / Td> '; Echo & lt; td style = "background color: #fffff" & gt; & Lt; / Td> '; ...? & Gt; & Lt; / Tbody & gt; & Lt; / Table & gt;   

Now, "mystring $" is displayed inside the cell I want to paint a cell (i.e., background color: # 388643 ") and if I click on it, then The pop-up is displayed with the string "$ mystring".

I use the pop-up:

  echo " ";   

but I'm not able to link it to the" Click this cell "event.

Using pure javascript without JS framework

    gt; & lt; / td & gt; '.... . & Gt; & lt; / tbody & gt;    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -