javascript - How to Separate Row Values in Text View's in PhoneGap? -


I have parsed JSN data in table view. The code for table view is given below -

  & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta name = "viewport" content = "width = device-width, initial-scale = 1" & gt; & Lt; Link rel = "stylesheet" href = "css / jquery.mobile-1.4.2.min.css" & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div data-role = "page" id = "pagetwo" & gt; & Lt; Div data-role = "header" & gt; & Lt; H1 & gt; Cars & lt; / H1> & Lt; A href = "levels.html" data-roll = "button" data-inline = "true" data-mini = "true" & gt; Back & lt; / A & gt; & Lt; / Div & gt; & Lt; Div data-role = "main" square = "ui-content" style = "margin-top: -20px;" & Gt; & Lt; H2 & gt; & Lt; / H2 & gt; & Lt; Ul data-roll = "list view" id = "listid" & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; Script src = "js / jquery-1.10.2.min.js" & gt; & Lt; / Script & gt; & Lt; Script src = "js / jquery.mobile-1.4.2.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ (Function () {$ .getJSON ("json / details.json", function (data) {var html = "" (var d in data d) {for (data i.cars [var] in var i) {Html + = "and 
  • < I] Dars + "& lt; / p & gt; & lt; / a & gt; & lt; / li & gt;"}} $ ("# listid"). Attachment (html);}) .Done (Function () {$ ("# listid"). () .listview ("Refresh");});}); & Lt; / Script & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;
  • enter image details here

    now , When I click on the first line, two test views should be separated by Indica and four Doors , like -

    Please suggest me Thanks in advance!

    Enter image details here

    < Div class = "post-text" itemprop = "text">

      html = "
  • p> + Datacars [D] [I] Dors + "& lt; / p & gt; & lt; / a & gt; & lt; / li & gt;"; $ ('Li a'). ('Click', function {$ ('# model'). Text ($ (this). Child ('span'). Text ()); $ ('# text ($) (). ($ (This). Children ('P'). Text ());})

  • Comments

    Popular posts from this blog

    Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

    multithreading - PhantomJS-Node in a for Loop -

    c++ - MATLAB .m file to .mex file using Matlab Compiler -