jquery - javascript code with ajax loading -


i try add css class js element. i'm trying add css class html element via javascript.

(function ($) {     "use strict";     $(document).ready(function () {          $('.delete').addclass('icon-trash');      }); })(jquery.noconflict()); 

but when element loaded ajax need refresh page see it. how can fix ?

you have not used ajax in this, have used jquery.read ajax call , use it. if want go same code of yours try call function onload

like <body onload="myfunction()">


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -