• 15
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

I am using

window.addEventListener("touchstart", function(ev){
    console.log(ev.touches); // good
});

How can I translate this to jQuery? I've tried:

$(window).bind("touchstart",function(ev){
    console.log(ev.touches); // says ev.touches is undefined
}

Any ideas?