javascript - aMy jquery script does not work in ie 8, how to get around it? -


I'm trying to run a script in 8, but that does not work. The script works as follows:

  1. I load the << code> result of the div with $ post . yearSOMEYEAR in each device, for example, year 2012 , year 2013 , ...

  2. < P> I want to split these pages into my page which takes the numeric part SOMEYEAR to yearSOMEYEAR account. For this I have some pages to call classify () to the id gb_hidden_YEAR ..
  3. classification. I Is as follows:

     for  (i = 1; i  
  4. The function is classified below:

      function classified (seminar) {$ mydiv = $ (Seminar); Var year = $ mydiv.attr ("square"). Replace (/ [a-z] + /, ''); $ ("# Gb_hidden _" + year) .append (seminar); }     

    It shoud me what I really want.

    It works fine with Chrome or Firefox, though it is not with 8?

    After trying to solve the problem all day, I finally found out what was wrong .

    That was a suitable description in my php code. I pass from php to jquery with a span class from variable yearSOMEYEAR :

      "  

    The problem was that the end tag & lt; / span & gt; was lost.

    This Chrome It looks good with deals while it's anarchy for 8 or 8.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -