Javascript doesn't work.

I have this code:

<div class="row">
			<div class="col-sm-8 col-xs-8 nopadding" style="font-size:17px;">&nbsp;&nbsp;<b>Markup</b>&nbsp;<span style="font-size:12px;"><a href="#" onclick="show-Mkup_desc();">More Info</a></span></div>
			<div class="col-sm-3 col-xs-3 nopadding text-right" style="font-size:16px;"><input type="text" name="markup" style="width:25px;"></div>  
		</div>

Open in new window

And this JavaScript:
function show_Mkup_desc() {
	alert("To increase the trade price by 5%, enter 1.05. If you want to decrease the trade price by 5%, enter .95");
	return true;
	
}

Open in new window

When I click pn the "More Info test (underlined as a link), nothing happens.

Why?
Richard KortsAsked:
Who is Participating?
 
MishaConnect With a Mentor ProgrammerCommented:
In html your code
show-Mkup_desc()

Open in new window


in javascript your code:
show_Mkup_desc()

Open in new window


Function name must have equal name.!!
0
 
Richard KortsAuthor Commented:
Of course, I just didn't see it.

Thanks.
0
 
MishaProgrammerCommented:
Glad to hepl you!
0
All Courses

From novice to tech pro — start learning today.