get image button value onclick

Posted on 2014-07-29
Last Modified: 2014-07-29
Question by:sevensnake77
LVL 58

Assisted Solution

Gary earned 167 total points
Comment Utility
Get what value - there is no value
LVL 82

Accepted Solution

leakim971 earned 167 total points
Comment Utility
$( "[id^=Delete]" ).click(function( event ) {
	 var ctID = $(this).attr("id");
    alert("you clicked " + ctID);

Open in new window

LVL 21

Assisted Solution

by:Randy Poole
Randy Poole earned 166 total points
Comment Utility
Here is the code:
$( "[id^=Delete]" ).click(function( event ) {
	alert("you clicked " +;

Open in new window

Also make sure to the left on jsfiddle, frameworks and extensions to choose JQuery 2.x or whichever you are using..

Author Closing Comment

Comment Utility
both were great thanks guys

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Summernote and form validation 10 36
jquery not selector 4 24
Select2 jquery help 9 40
jQuery animation faster 1 16
What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now