html - Attaching an Href to a row inside a table -


I am using code in a .php file. I have a statement:

  & lt; Html & gt; & Lt; TR & gt; & Lt; TD & gt; Hi & lt; TD & gt; & Lt; TD & gt; The & lt; TD & Lt; / TR & gt; & Lt; / Html & gt;   

How can I add a href to the row? Just knowing how to add a href to the tag was not working? Note: The table was defined in the first code, it is a piece of the line.

You do not append the row to href, instead you

  & Lt; table class = "table table-stripped" & gt; & Lt; Tr class = "selectedRow" & gt; & Lt; Td> & Lt; A href = "#" & gt; Hi & lt; / A & gt; & Lt; / Td> & Lt; TD & gt; Test & lt; / TD & gt; & Lt; / TR & gt; & Lt; / Table & gt;   

Then using jquery:

  $ ('. SelectedRow'). Click (function () {warning ('do something');});   

View

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -