A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Problem with html image tag inside input tag
Joined: Dec 28, 2005
Mar 06, 2008 13:12:00
I have a problem displaying image on the button tag
[input type="button" value=" [img src='images/arrow.jsp' ] " on click="function1()" / ]
Its not picking up the image value instead it displays whole tag...instead of processing image tag...
any correct way of defining this so that the img tag is processed....
or any other way of displaying an img on the button..
i know that [input type="image" src="path" ]tag is present but it is by default submit button..so after doing the on click funtion it is submitting the form which i dont want to...
Please suggest any other way...
Joined: Dec 11, 2004
Mar 06, 2008 14:14:00
That's not the way to do that.
Either use an <input type="image" tag or put the image in the body of the button tag.
<button ...><image src=.../></button>
How to ask a question...
Simple Servlet Examples
I agree. Here's the link:
subject: Problem with html image tag inside input tag
Buttons in same form hitting different servlets
How to hide image path in JSP
assign values to form elements dynamically?
ImageButton with DispatchAction
Disable and Enable a Submit Button
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014