jQuery: Changing the CSS on an element loaded with ajax?

后端 未结 3 1454
别那么骄傲
别那么骄傲 2020-12-15 12:05

I need to change the position of an element i\'m loading with ajax. I want to use .css() to change it but jQuery can\'t find the element cause it\'

3条回答
  •  时光说笑
    2020-12-15 12:26

    If you have to markup in a js variable then you can do it as below.

    $(markup).find("requiredElement").css({ set the properties here });
    

提交回复
热议问题