javascript - Text data is not getting bind to html elements through jquery code only in chrome browser -


i trying bind text data html elements through jquery using particular element id data not getting bind in chrome browser, same functionality working in other browsers firefox , ie. following code please tell me solution if have any.

var reqsegment1 = $('segment', flightreq);  $("#sporgcity").html($('departurelocation', reqsegment1[0]).text()); $("#spdestcity").html($('arrivallocation', reqsegment1[0]).text());  if (triptype == "oneway") {     $("#onewaydiv").attr("style", "display:block;");     $("#rnddiv").attr("style", "display:none;"); } else {     $("#onewaydiv").attr("style", "display:block;");     $("#rnddiv").attr("style", "display:block;"); } 

above code works other browsers chrome. unable investigate actual problem if working other browsers. jquery conflict issue or else.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -