MCPcopy Create free account
hub / github.com/gawel/pyquery / hide

Method hide

pyquery/pyquery.py:953–960  ·  view source on GitHub ↗

Add display:none to elements style: >>> print(PyQuery(' ').hide())

(self)

Source from the content-addressed store, hash-verified

951 # CORE UI EFFECTS #
952 ###################
953 def hide(self):
954 """Add display:none to elements style:
955
956 >>> print(PyQuery('<div style="display:none;"/>').hide())
957 <div style="display: none"/>
958
959 """
960 return self.css('display', 'none')
961
962 def show(self):
963 """Add display:block to elements style:

Callers

nothing calls this directly

Calls 1

cssMethod · 0.95

Tested by

no test coverage detected