Posts: 41
Name: Scott Brown
Location: Huddersfield, UK
|
Hi,
Here's one for you. I've had a go at this already but I'm crap at JS.
I've got a site where I cannot edit the HTML. I'm quite good with CSS and jQuery helps with all the other stuff I need to control. However, there's a:
Code:
<input type="image" src="blah/blah.gif" />
This has no class, no id. The only way to target this is using the cascade and input[type="image"] (and Dean Edwards IE8 script so IE can see it).
My question is, how can I target this in jQuery to change the image (or better still, change it from an image entirely so I can build a sensible proper button)?
I look forward to some creative or well tested solutions
Ta,
Scott.
|