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

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript