File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "$( Watch "$( New topic

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

Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1076


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? || 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
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

The single quotes are just the empty string.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: $('div.west).html(''); what does only quotes mean in html method
It's not a secret anymore!