Monday, 15 April 2013

javascript - preloaded data in html -


What would be the best way to load data in HTML and then use it with javascript I do not use the variable in javascript Do not want to save or save an AJAX query.

Could this hidden divise contain an XML data? .

Example:

  1; Europe 2; Latin America ------------------ 2, 1, Argentina 2, 2; Brazil 2, 3, Chile 1, 4, France 1, 5, Spain 1, 6; Italy  

It needs to be loaded into data selection based on the country you selected. There are too many data and need to be fast, I have already been loaded it.

The edit solution, based on the proposed solutions:

  & lt ;! DOCTYPE HTML Public "- // W3C // DTD XHTML 1.0 Transcription // N" http: // www. W3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">" target="_blank"> html xmlns = "http://www.w3.org/1999/xhtml"> gt; Top & gt; Lt; Meta content = "text / html; Charset = UTF-8 "http-equiv =" content-type "/> & lt; script type =" text / javascript "src =" http://ajax.googleapis.com/ajax/libs/jquery/1.3 .2 / jquery.min.js ">