In my JavaScript code, I have to make a line like this (I use smarty template engine, that is the literal stuff).
<script language="javascript" type="text/javascript">
function ajaxTextKill() {
// ...etc.
ajaxRequest.open("GET", "functions.php?action=kill{/literal}&id="+IWANTMYIDHERE+"&p={$smarty.get.page}&c={$smarty.get.sel}{literal}", true);
ajaxRequest.send(null);
}
After this in my HTML code,
<input type="button" id="87" value="del" onClick="return ajaxTextKill();" />
I'd like to give the JavaScript the input's id value. How to do this?