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
Post a Comment