TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ahmed elbarbary
NA
1.6k
278.1k
How to replace comma separate by and when push data ?
May 17 2020 1:49 AM
I work on angular 7 i need to replace comma separated , when push data
initcollectdropdowslist=[];
collectfulldata:string;
let textdata=$event.target.options[$event.target.options.selectedIndex].text;
let statusdata:any =
this
.FilterBinddata.filter(s=>s.reportSource==textdata)[0].reportSource2;
this
.collectfulldata= statusdata +
"="
+
"'"
+ textdata +
"'"
;
this
.initcollectdropdowslist.push(
this
.collectfulldata);
console.log(
"full data is "
+
this
.initcollectdropdowslist)
current result
full data is Text6=
'Lifecycle'
,Text6=
'Package'
,Text6=
'Parametric'
Expected result
full data is Text6=
'Lifecycle'
and Text6=
'Package'
and Text6=
'Parametric'
Reply
Answers (
5
)
why datepicker not fill input box if drop down list selected
How to remove item if exist before and add current as new ?