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

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -