w1nk5 — 2012-10-29T15:52:05-04:00 — #1
var reportId = event.findElement('tr').identify().match(/\d+/);
var reportId = $(this).closest('tr').attr('id').is(/\d+/);
You can see what I have above. However, in prototype reportId = the closest tr element with an id of digits. In jQuery it returns false.
I realize the .is() returns true or false, my questions is... what can I do to replicate the what Prototype performs.
paul_wilkins — 2012-10-29T16:04:39-04:00 — #2
There's something else here that's going to prevent a solution from properly being applied, and that is that it's not allowed for any identifier to start with a number.
w1nk5 — 2012-10-29T16:10:38-04:00 — #3
Well the prototype code works. I am converting all prototype to jquery. I think I phrased that wrong, its not looking for an id of digits, it is looking for the closest id with digits, not necessarily all digits.
w1nk5 — 2012-10-29T16:17:45-04:00 — #4
Nevermind. I figured it out. I should have just left .match(/\d+/) and not changed it.