Problems jquery

12 views
Skip to first unread message

Jean-Baptiste Bachoc

unread,
Aug 17, 2016, 6:03:56 AM8/17/16
to phantomjs
i have a probleme with jquery and phantom js when i load my page
$('.btn[id^="EXPORTER"').on('click', function() {
 
var id =$(this).attr('id');
 
var index_id = id.search("_")+1;
 
var n=id.substr(index_id);
 envoyer_lea
(n);
 
});


and the console of phantom

Error : Syntax error, unrecognized expression : .btn[id^="EXPORTER"

*do you have an idea?


Reply all
Reply to author
Forward
0 new messages