aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes $('div.west).html(''); what does only quotes mean in html method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "$( Watch "$( New topic
Author

$('div.west).html(''); what does only quotes mean in html method

Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1055

Hi,

I somewhat understood what is this, but didnt get the clarity... Its like taking the west class and converting it into some html format.??? but html parameters just have two single quotes.. I am not sure what it is trying to do?


http://www.lifesbizzare.blogspot.com || OCJP:81%
Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

Its just clearing out the html of the DIV


Muhammad Saif Asif Mirza
OCJA(5/6) OCJP(6) OCJWCD(6)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

The single quotes are just the empty string.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: $('div.west).html(''); what does only quotes mean in html method