hhggg Posted July 5, 2017 Report Share Posted July 5, 2017 как число, которое получилось ,внести в базу если кнопка не предусмотрена? <td width="100" align="center"><?=sprintf("%.0f",($v =(($data_stats["money_b"]/100)*($data_stats["money_p"]/100))+($data_stats["insert_sum"]*$data_stats["payment_sum"])) > 0 ? $v: 0);?> $</td> Link to comment Share on other sites More sharing options...
Teddy_Bear Posted July 6, 2017 Report Share Posted July 6, 2017 Можно использовать другие события. Не обязательно нажатие кнопки. Можно по ячейке таблицы, например. Чаще всего: onClick - вызывается по событию Click: щелчок (нажатие левой клавиши мыши); onDblclick - вызывается по событию Dblclick: двойной щелчок; onKeydown - вызывается по событию Keydown: нажатие клавиши клавиатуры; onFocus - вызывается по событию Focus: установка фокуса поля (при щелчке мыши по полю); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now