E
E
EVOSandru62015-11-23 12:14:05
Yii
EVOSandru6, 2015-11-23 12:14:05

How to get current post id in yii1 in CGridView ->columns->buttons->update->click area?

Good afternoon,
In this place there is a js code. It is not clear how to pull out the id of the current row (record)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Bukharev, 2015-11-23
@EVOSandru6

To pull out the id of the entry, assign the data attribute with the id to the element that is supposed to be clicked, and in the handler function itself, you can access the element through this, and then you can access the data attributes themselves

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question