can i assign anchor tag to my full row?
can i assign anchor tag to my full row?
jatin gajera
Posts: 60Questions: 23Answers: 0
can i assign anchor tag to my full row ?
i want to assign all row to anchor tag is this possibal??
This question has accepted answers - jump to:
This discussion has been closed.
Answers
Hi @jatin gajera ,
I'm not sure if you can add an
<a>
tag to a row, but you can still get click events as in this example here, which you could then decide how to deal with click, i.e. show info or follow a link,Cheers,
Colin
thanks @Colin i get the solution...
Colin 1 more question...
In above example i want to add Enter button event..is this possibal..??
when i enter table row's it gives row's data like on click event.in example you give this..
Hi @jatin gajera ,
Where you say "Enter" event, is that just triggering when the Enter button is pressed? If so, it would be worth looking at Keytable, this has good support for key events in the table,
Cheers,
Colin
Colin...
i am useing select also ohk.
so we have 10 rows when we are scroll with arrow key on 2nd rows and press enter that time i want 2nd row's data,after again scroll with arrow key on 5th row and press enter that time i want 5th rows data....is it posibal..??
in datatable jquery event only gives click event that's why i am asking you.i tryed many time but bedluck....
Hi @jatin gajera
With KeyTable, the "Enter" key can be listened for in an event - see this example here. In this example, the Enter key prints out "Key press: 13" for that event handler. You could change that event handler to display the data for the rows above (which is what I think you want, if so let me know, and I'll see if I can knock out an example for you).
Cheers,
Colin
thanks @colin for your replay..
i got the solution..just apply table's <tr> element selected class..and it's done..