Run the following in Safari: https://jsfiddle.net/gkatsanos/2355m5ds/
When I change the .val () of an input field without focusing on it manually in Safari, the placeholder remains.
$('a').on('click', () => { $('#stuff').val('lala'); });
input { width: 500px; }
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <form> <input id="stuff" type="text" placeholder="This Won't get removed in Safari when we change the value of the input"> <a href="#">Click this</a> </form>
I have the same problem and I posted it under the Apple community a couple of weeks ago. I tried updating jquery to the newest version and without joy. I assume this is an Apple change in webkit that is incompatible with jquery.
, Javascript Safari.
, Safari jsfiddle, . " β Javascript Console", , .
Apple (# 33759204).
Source: https://habr.com/ru/post/1660706/More articles:boost :: geometry :: union_ performs self-intersections - c ++Where to get Fastdebug / Debug for building JDK 8 for Windows? - javaOpen url from Today Extension - iosHow do I convert a timestamp column of an object type to an appropriate time type? - pythonIs there a way to enable camel burning through method names in VS Code? - camelcasingIs there a way for SFINAE based on available overloads in the current class? - c ++count positive negative values ββin a column by groups - rWeb browsing and accessibility service - androidSort a numbered array inside a function - javascriptGlobal Client Side State in Relay - reactjsAll Articles