Thursday, September 4, 2014

onClick selected value in input box Java script

Standard



i  have div, which has one input box and it generates some values in <ul><li> through ajax, now I wanted to select one of the values from <li> and set it in that input box using simple javascript.






html Code:
    
  • 1
  • 2
  • 4
  • 4
  • 5

JS Code:

Related Posts:

  • onload DIV window.onload = function() { document.getElementById('msg').innerHTML = 'loaded!' … Read More
  • laravel 5 ajax POST hi guys here is basic AJAX POST on laravel 5 i hope this will help for your advance project  thank you Route::group(['prefix' => 'aj… Read More
  • Rating star html & JS html Code: JS Code: function ShowRating($element, rating){ $stars = $element.find('div'); $stars.rem… Read More
  • print div contain using JS function printsmcs() { var printsmcs = window.open('','','width=1500,height=1000'); printsmcs.document.open("text/html"); printsmcs.document.… Read More
  • change the color of scrollbars add this in your style .css  to change the color of the scrollbars on my pages in Internet Explorer and Firefox ::-webkit-scrollba… Read More

0 comments:

Post a Comment