Hello.
There was a need to search in the array by key. An example of php I would do
$some=array('movie'=>'фильм','music'=>'музыка'); $some['movie'];
How can this be done on jQuery?
Thank.
var some={'movie':'фильм','music':'музыка'}; some['movie'];
ps I apologize not immediately noticed that you need jQuery:
$(document).ready(function(){ $.extend({movie:'фильм'},{music:'музыка'}).movie; });
Source: https://ru.stackoverflow.com/questions/103151/
All Articles