Jump to content

Why does this not work..?


Zane

Recommended Posts

Can anyone tell me why this doesn't work in IE?  Other than the fact that it is IE

$("#wrapper tr").live('click', function() {
	var link = $(this).find("input").attr('value');
	alert(link);
	//window.open(link);

});

When I run this in FF, the alert says "NOLINK", like I have hardcoded into the input

When I use IE, of course, it fails to work... and the alert says "undefined"

 

 

Link to comment
Share on other sites

Well, either way, the .val() method should always be used to get a value from an element.

So you are saying that $(this).find("input").val() does not work either?

If not, a couple of questions I have just for some additional info:

 

1. What version of IE are you using to test this?

 

2. What version of jquery?

 

3. Can you please post the snippet of code that this script is meant to grab the value from.

 

4. Would there by chance be any conflicting code?

 

5. Are there any errors present before reaching this script? IE is known to stop parsing script if there is an error present.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.