Javascript split error : Uncaught TypeError: Cannot read property 'split' of undefined [closed] The 2019 Stack Overflow Developer Survey Results Are InDetecting an undefined object propertyHow to check empty/undefined/null string in JavaScript?How do I remove a property from a JavaScript object?How can I know which radio button is selected via jQuery?Checking if a key exists in a JavaScript object?What does “use strict” do in JavaScript, and what is the reasoning behind it?Why does Google prepend while(1); to their JSON responses?How to check for “undefined” in JavaScript?How to check if an object is an array?Why does my JavaScript get a “No 'Access-Control-Allow-Origin' header is present on the requested resource” error when Postman does not?

Multiply Two Integer Polynomials

Why isn't airport relocation done gradually?

Origin of "cooter" meaning "vagina"

Did Scotland spend $250,000 for the slogan "Welcome to Scotland"?

Loose spokes after only a few rides

Why hard-Brexiteers don't insist on a hard border to prevent illegal immigration after Brexit?

Which Sci-Fi work first showed weapon of galactic-scale mass destruction?

How to deal with fear of taking dependencies

Falsification in Math vs Science

How to manage monthly salary

What did it mean to "align" a radio?

Protecting Dualbooting Windows from dangerous code (like rm -rf)

Worn-tile Scrabble

Apparent duplicates between Haynes service instructions and MOT

What does ひと匙 mean in this manga and has it been used colloquially?

Why did Acorn's A3000 have red function keys?

How to save as into a customized destination on macOS?

Should I use my personal e-mail address, or my workplace one, when registering to external websites for work purposes?

How are circuits which use complex ICs normally simulated?

Earliest use of the term "Galois extension"?

What is the accessibility of a package's `Private` context variables?

The difference between dialogue marks

Have you ever entered Singapore using a different passport or name?

Why was M87 targetted for the Event Horizon Telescope instead of Sagittarius A*?



Javascript split error : Uncaught TypeError: Cannot read property 'split' of undefined [closed]



The 2019 Stack Overflow Developer Survey Results Are InDetecting an undefined object propertyHow to check empty/undefined/null string in JavaScript?How do I remove a property from a JavaScript object?How can I know which radio button is selected via jQuery?Checking if a key exists in a JavaScript object?What does “use strict” do in JavaScript, and what is the reasoning behind it?Why does Google prepend while(1); to their JSON responses?How to check for “undefined” in JavaScript?How to check if an object is an array?Why does my JavaScript get a “No 'Access-Control-Allow-Origin' header is present on the requested resource” error when Postman does not?



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








-1















I write codes for split array values. But I get this error.



 var modeOfSending = $('#retrieveValueSupplier').val(); 
var arrayBuild = modeOfSending.split(',');


Here more detail










share|improve this question















closed as off-topic by CertainPerformance, SherylHohman, JumpingJezza, Shiladitya, Tiw Mar 22 at 5:50


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – CertainPerformance, SherylHohman, JumpingJezza, Shiladitya, Tiw
If this question can be reworded to fit the rules in the help center, please edit the question.
















  • Please add your HTML code.

    – Jack Bashford
    Mar 22 at 3:52











  • Before split check if modeOfSending has any value. Add if condition.

    – randomSoul
    Mar 22 at 3:53











  • i'm sorry... i delete my input text id= "retrieveValueSupplier" before :v....Thanks bro

    – Husein
    Mar 22 at 4:13












  • @JackBashford yes, i forgot my input text id = "retrieveValueSupplier"..thx broo

    – Husein
    Mar 22 at 4:16

















-1















I write codes for split array values. But I get this error.



 var modeOfSending = $('#retrieveValueSupplier').val(); 
var arrayBuild = modeOfSending.split(',');


Here more detail










share|improve this question















closed as off-topic by CertainPerformance, SherylHohman, JumpingJezza, Shiladitya, Tiw Mar 22 at 5:50


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – CertainPerformance, SherylHohman, JumpingJezza, Shiladitya, Tiw
If this question can be reworded to fit the rules in the help center, please edit the question.
















  • Please add your HTML code.

    – Jack Bashford
    Mar 22 at 3:52











  • Before split check if modeOfSending has any value. Add if condition.

    – randomSoul
    Mar 22 at 3:53











  • i'm sorry... i delete my input text id= "retrieveValueSupplier" before :v....Thanks bro

    – Husein
    Mar 22 at 4:13












  • @JackBashford yes, i forgot my input text id = "retrieveValueSupplier"..thx broo

    – Husein
    Mar 22 at 4:16













-1












-1








-1


1






I write codes for split array values. But I get this error.



 var modeOfSending = $('#retrieveValueSupplier').val(); 
var arrayBuild = modeOfSending.split(',');


Here more detail










share|improve this question
















I write codes for split array values. But I get this error.



 var modeOfSending = $('#retrieveValueSupplier').val(); 
var arrayBuild = modeOfSending.split(',');


Here more detail







javascript jquery






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 22 at 4:34









Siong Thye Goh

1,74511016




1,74511016










asked Mar 22 at 3:50









HuseinHusein

113




113




closed as off-topic by CertainPerformance, SherylHohman, JumpingJezza, Shiladitya, Tiw Mar 22 at 5:50


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – CertainPerformance, SherylHohman, JumpingJezza, Shiladitya, Tiw
If this question can be reworded to fit the rules in the help center, please edit the question.







closed as off-topic by CertainPerformance, SherylHohman, JumpingJezza, Shiladitya, Tiw Mar 22 at 5:50


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – CertainPerformance, SherylHohman, JumpingJezza, Shiladitya, Tiw
If this question can be reworded to fit the rules in the help center, please edit the question.












  • Please add your HTML code.

    – Jack Bashford
    Mar 22 at 3:52











  • Before split check if modeOfSending has any value. Add if condition.

    – randomSoul
    Mar 22 at 3:53











  • i'm sorry... i delete my input text id= "retrieveValueSupplier" before :v....Thanks bro

    – Husein
    Mar 22 at 4:13












  • @JackBashford yes, i forgot my input text id = "retrieveValueSupplier"..thx broo

    – Husein
    Mar 22 at 4:16

















  • Please add your HTML code.

    – Jack Bashford
    Mar 22 at 3:52











  • Before split check if modeOfSending has any value. Add if condition.

    – randomSoul
    Mar 22 at 3:53











  • i'm sorry... i delete my input text id= "retrieveValueSupplier" before :v....Thanks bro

    – Husein
    Mar 22 at 4:13












  • @JackBashford yes, i forgot my input text id = "retrieveValueSupplier"..thx broo

    – Husein
    Mar 22 at 4:16
















Please add your HTML code.

– Jack Bashford
Mar 22 at 3:52





Please add your HTML code.

– Jack Bashford
Mar 22 at 3:52













Before split check if modeOfSending has any value. Add if condition.

– randomSoul
Mar 22 at 3:53





Before split check if modeOfSending has any value. Add if condition.

– randomSoul
Mar 22 at 3:53













i'm sorry... i delete my input text id= "retrieveValueSupplier" before :v....Thanks bro

– Husein
Mar 22 at 4:13






i'm sorry... i delete my input text id= "retrieveValueSupplier" before :v....Thanks bro

– Husein
Mar 22 at 4:13














@JackBashford yes, i forgot my input text id = "retrieveValueSupplier"..thx broo

– Husein
Mar 22 at 4:16





@JackBashford yes, i forgot my input text id = "retrieveValueSupplier"..thx broo

– Husein
Mar 22 at 4:16












2 Answers
2






active

oldest

votes


















0














this is because modeOfSending is undefined.. have you try debug the value of $('#retrieveValueSupplier').val(); ?






share|improve this answer























  • yes, i forgot my input text id = "retrieveValueSupplier"..thx broo

    – Husein
    Mar 22 at 4:41











  • I did nothing..

    – surya surakhman
    Mar 22 at 8:14


















0














Before split check if modeOfSending has any value and is not undefined or null.






let val;

val.split(",");








let val = "Hello,world";

if(val)
console.log(val.split(","));
;








share|improve this answer





























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    this is because modeOfSending is undefined.. have you try debug the value of $('#retrieveValueSupplier').val(); ?






    share|improve this answer























    • yes, i forgot my input text id = "retrieveValueSupplier"..thx broo

      – Husein
      Mar 22 at 4:41











    • I did nothing..

      – surya surakhman
      Mar 22 at 8:14















    0














    this is because modeOfSending is undefined.. have you try debug the value of $('#retrieveValueSupplier').val(); ?






    share|improve this answer























    • yes, i forgot my input text id = "retrieveValueSupplier"..thx broo

      – Husein
      Mar 22 at 4:41











    • I did nothing..

      – surya surakhman
      Mar 22 at 8:14













    0












    0








    0







    this is because modeOfSending is undefined.. have you try debug the value of $('#retrieveValueSupplier').val(); ?






    share|improve this answer













    this is because modeOfSending is undefined.. have you try debug the value of $('#retrieveValueSupplier').val(); ?







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Mar 22 at 3:56









    surya surakhmansurya surakhman

    342




    342












    • yes, i forgot my input text id = "retrieveValueSupplier"..thx broo

      – Husein
      Mar 22 at 4:41











    • I did nothing..

      – surya surakhman
      Mar 22 at 8:14

















    • yes, i forgot my input text id = "retrieveValueSupplier"..thx broo

      – Husein
      Mar 22 at 4:41











    • I did nothing..

      – surya surakhman
      Mar 22 at 8:14
















    yes, i forgot my input text id = "retrieveValueSupplier"..thx broo

    – Husein
    Mar 22 at 4:41





    yes, i forgot my input text id = "retrieveValueSupplier"..thx broo

    – Husein
    Mar 22 at 4:41













    I did nothing..

    – surya surakhman
    Mar 22 at 8:14





    I did nothing..

    – surya surakhman
    Mar 22 at 8:14













    0














    Before split check if modeOfSending has any value and is not undefined or null.






    let val;

    val.split(",");








    let val = "Hello,world";

    if(val)
    console.log(val.split(","));
    ;








    share|improve this answer



























      0














      Before split check if modeOfSending has any value and is not undefined or null.






      let val;

      val.split(",");








      let val = "Hello,world";

      if(val)
      console.log(val.split(","));
      ;








      share|improve this answer

























        0












        0








        0







        Before split check if modeOfSending has any value and is not undefined or null.






        let val;

        val.split(",");








        let val = "Hello,world";

        if(val)
        console.log(val.split(","));
        ;








        share|improve this answer













        Before split check if modeOfSending has any value and is not undefined or null.






        let val;

        val.split(",");








        let val = "Hello,world";

        if(val)
        console.log(val.split(","));
        ;








        let val;

        val.split(",");





        let val;

        val.split(",");





        let val = "Hello,world";

        if(val)
        console.log(val.split(","));
        ;





        let val = "Hello,world";

        if(val)
        console.log(val.split(","));
        ;






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 22 at 3:57









        randomSoulrandomSoul

        833614




        833614













            Popular posts from this blog

            How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

            155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

            해남서초등학교 학교 연혁 학교 동문 외부 링크 둘러보기 메뉴북위 34° 34′ 21″ 동경 126° 35′ 50″ / 북위 34.5726385° 동경 126.5972670°  / 34.5726385; 126.5972670해남서초등학교eh