locked
I am writing a program where i have to check Cities and Streets and group the Address to the respective Cities. RRS feed

  • Question

  • User932259438 posted

    I am writing a program where i have to check Cities and Streets and group the Address to the respective Cities.

    The Text which i want to check on: var trenutnerelacije = $('#TrenutneRelacije');

    Desired Output :

    Celje(partizanska cesta,kosovelova ulica) - Maribor(gosposvetska ulica) - Celje (Litostrojska ulica, Andrejeva ulica) 

    //Get reference of the string to check on
    var trenutnerelacije = $('#TrenutneRelacije'); 
    
    // Check condition
    if (trenutnerelacije.html().substring(trenutnerelacije.html().lastIndexOf("-") + 1) != localStorage.getItem("mesto")) { 
    
       trenutnerelacije.append("-"+localStorage.getItem("mesto")); 
    
    }

    Saturday, March 7, 2020 4:04 PM

All replies

  • User1535942433 posted

    Hi progy85,

    Accroding to your description,I don't understand your reuqirment clearly.Could you tell us what issues you meet ?What is the TrenutneRelacije?

    Could you post your current full codes to us?It will help us solve your problems.

    Best regards,

    Yijing Sun

    Monday, March 9, 2020 4:26 AM