JQuery css Iphone not working

$(window).load(function(e) {
    var winswidth = $(".span63").css("width");   
   if ($(".wrapper").width() < 350) {
      $(".wrapper .yazi").hide(0); 
    }else if ($(".wrapper").width() > 350) {
      $(".wrapper .yazi").show(0); 
    }
    var sayi=2;
    winswidth=parseInt(winswidth)-sayi;
     $(".wrapper .options-wrapper").css("width: " + winswidth);//not working
});

other phones is working. but the iPhone is not working. Please help me. Thanks!

Upvotes: 0

Views: 566

Answers (1)

Anoop Joshi P
Anoop Joshi P

Reputation: 25527

use

$(".wrapper .options-wrapper").css("width",  winswidth + "px");

Upvotes: 1

Related Questions