jquery not working in internet explorer using mvc 



حمایت از ما | مشهدهاست

jquery not working in internet explorer using mvc


حمایت از ما | مشهدهاست

حمایت از ما | مشهدهاست حمایت از ما | مشهدهاست

حمایت از ما | مشهدهاست
`

jquery not working in internet explorer using mvc



asked

6 years ago

viewed

283 times

active

6 years ago


i have a group of radio buttons that are generated on the fly from the db into a partial control then rendered on the page as html and they all have the same name now in firefox and chrome the following code works fine

$(".FlightSelectedRadio").live('click', function() {     alert("after flight select");     $("#ToisGarantueedBid").attr("disabled", false); }); 

however in ie it doesnt work on the first select of a radio but only fires if u select something else ? any ideas wat the problem is ?


2010-05-06 13:39:14Z


1:


Lazarus, is right! The code you are writing should be executed after JQuery's page ready event fires which can be accomplished in two ways.

1) Like Lazarus

$(function() {       // your code here. }); 

2) Or tying in to the document object ready event.

$(document).ready(    function() {        // your code here.    } ); 


2:


yeah the radios are getting populated by jquery ajax call, i have managed to get it to work by using the change function isntead thanks for the help




 اين مطلب بدون دخالت انساني عينا از اين آدرس کپي شده و تمامي مسوليت آن با ناشر اصلي است.

How to get current page URL in MVC 3
Why is access to the path denied?
Login failed for user 'IIS APPPOOL\ASP.NET v4.0'
How to call javascript function from code-behind
ASP.NET Web Application Message Box
IE9 JavaScript error: SCRIPT5007: Unable to get value of the property 'ui': object is null or undefined

An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode
How to get current page URL in MVC 3
Read data from SqlDataReader
Get current date only in C#
How to add doublequotes to a string that is inside a variable?
Select method in List<t> Collection
*