Change the color of a text in div using jquery contains

后端 未结 6 727
别那么骄傲
别那么骄傲 2021-01-13 07:47

Here the whole text inside the div get\'s red color. but I need only the \"bar\" word color to be changed



        
6条回答
  •  别那么骄傲
    2021-01-13 08:14

    Try this... prototype library:

     
     
    
        
        
        
    
    
    
        
    this is a new bar

提交回复
热议问题