1. common method for getting an object $ (*) indicates getting all objects (usually not used) $ (# XXX) 'getting uname]) to get name 1 in the input tag. common Methods for getting objects
$ ("*") Indicates getting all objects (Generally, it is not used.)
$ ("# XXX") 'obtain the Element Object id = XXX (Frequently Used)
$ (". XXX") 'gets the Element Object of class = XXX(Frequently Used)
$ ("P") 'tag selector Selects all p elements(Common)
$ ("Input [name = 'uname']") obtain the element object named name = 'uname' in the input tag.(Common)
For example:
self.find("input[name='complany']").css('border','#FFB240 1px solid');self.find("textarea[name='messcont']").css('border','#FFB240 1px solid');
You can useSpace and greater than sign>, plus sign + and Tilde ~For more information about the usage rules, see (#) here. In this blog post, if you forget to add a comma combination, the following is a case of using a comma combination.
To obtain p whose class is message, the Code is as follows:
Gegrew
Ageaw