I am getting the value of pop up after I clicked it. It is giving value on Chrome, but it will not work on Firefox, why?
Here is my fiddle.
These are the following steps I did:
- Click on test button (open pop up).
- Select any value of pop up show on alert.
On Chrome it shows, but on Firefox it gives "undefined".
$(function () {
$('#test').click(function () {
$("#commadsPopup").popup("open");
});
});
$(document).on('click', '.commandRow a', function() {
var str = this.innerText;
alert(str);
});