You need to sign in to do that
Don't have an account?
krishna casukhela 15
get element of javascript array
I have an javascript array in lightning component controller.
var networkIds=[];
after some logic I have as follows inside the array "NetworkID":"11320"
I want to extract the number "11320" and then store it in attribute of type string..
I am doing as follows: var networkid=networkIds[0].split(':');
But I am getting an error
can any one pls let me know.
thanks
Krishna
var networkIds=[];
after some logic I have as follows inside the array "NetworkID":"11320"
I want to extract the number "11320" and then store it in attribute of type string..
I am doing as follows: var networkid=networkIds[0].split(':');
But I am getting an error
can any one pls let me know.
thanks
Krishna
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.