function MyClass() {
$("div.myclass").click(this.myclick)
}
MyClass.prototype.myclick = function() {
alert("myclick")
}
function MyClass() {
var self = this
$("div.myclass").click(function() {
self.myclick()
})
}
MyClass.prototype.myclick = function() {
alert("myclick")
}
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]
</IfModule>
$path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
<table class="table m-0">
<thead>
<tr>
<th>#</th>
<th>Название</th>
<th>Количество человек</th>
</tr>
</thead>
<tbody>
<? while($news = mysql_fetch_array($query)) { ?>
<tr class="groups" id="<? echo $news[id]; ?>">
<th scope="row"><? echo $news[id]; ?></th>
<th scope="row"><? echo $news[name]; ?></th>
<th scope="row"><? echo $news[count]; ?></th>
</tr>
<? } ?>
</tbody>
</table>
var id = $('tr.groups:last-child').attr("id");