Skip to content Skip to sidebar Skip to footer

Jquery Condition Works In All Browsers Except Safari

In Safari on iPhone and iPad the selector I have in place for the conditional statement isn't working and results in duplicate content with each ajax request. It works fine on andr

Solution 1:

After over 50 commits to the live app I finally found the culprit. In my javascript file that creates the dynamic elements I had

Array.prototype.slice.call( this.el.querySelectorAll( 'input#micropost_content1' ) ).forEach( function( el, i ) {
  self.fldOpen++;
  self.fields.push( new NLField( self, el, 'input', self.fldOpen ) );
} );

I had to change 'input#micropost_content1' to use a class instead of an id and everything began working as intended.

Post a Comment for "Jquery Condition Works In All Browsers Except Safari"