Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Javascript-Remove Currency from the given user's string.
WhatsApp
Ghanashyam Nayak
4y
8
k
0
0
25
Blog
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
>
<html>
<head>
<title>Sample Code</title>
<script type=
"text/javascript"
>
function
RemoveCurrency(a)
{
if
(a.indexOf(
"$"
) >= 0)
{
a = a.replace(
"$"
,
""
)
}
alert(a)
};
</script>
</head>
<body bgcolor=#00ff00 alink=blue vlink=blue>
<FORM name=
"windowEvent"
>
Enter String : <input type=
"text"
name=
"txtOriginal"
/><br>
<input type=
"button"
value=
"Remove Currency"
name=
"btnRemoveCurrency"
onClick=
"RemoveCurrency(txtOriginal.value);"
/>
</FORM>
</body>
</html>
Javascript-Remove Currency from the given users string.
Up Next
Javascript-Remove Comma from the given user's string.
Ebook Download
View all
Voice of a Developer: JavaScript From Scratch
Read by 11k people
Download Now!
Learn
View all
Membership not found