Search Results

Search found 2 results on 1 pages for 'user373721'.

Page 1/1 | 1 

  • Combobox item style

    - by user373721
    my project is asp.net MVC, using Telerik MVC combobox. I can change the sytle of the first item if I use: var item = combobox.dropDown.$items.first(); item.addClass('test'); Or change all items, using: combobox.dropDown.$items.addClass('test'); But I need to change just specific items (based on a model), I tried: combobox.dropDown.$items[1].addClass('test'); I get this error: Object doesn't support property or method 'addClass'

    Read the article

  • HTML5 Video Javascript

    - by user373721
    Hi, I am not experienced in Javascript, I have the following script to play video files on Andriod phone, and it works fine. <script type="text/javascript"> function PlayMyVideo(arg) { var myVideo = document.getElementById([arg]); myVideo.play(); } </script> <video id="what" src="what.mp4" poster="" /> <input type="button" onclick="PlayMyVideo('what')" value="Play" /> I am trying to write the tag on the fly: <script type="text/javascript"> function PlayVideo() { new_video = document.createElement('video'); new_video.setAttribute('scr', 'what.mp4'); new_video.play(); } </script> <input type="button" onclick="PlayVideo()" value="Play2" /> Nothing happen, would appreciate your suggestions. Thanks in advance

    Read the article

1