Skip to content Skip to sidebar Skip to footer

Js + Rails - Can't Get This Form Working

I adapted this js from this SO question, but I've never used js before and not sure what I'm doing wrong here. It's very possible it's a simple fix, but your help is hugely apprec

Solution 1:

there were few mistakes , i have corrected it.below is the respective code as well the live working copy from Fiddle.

JS FIDDLE

JS CODE:

$(document).ready(function () {
  //hide table by default
  $('#nos_header').hide ();

  $('#nos').change(function () {
    var opt=$('#nos option:selected');
      //alert(opt.text());refresh(opt.text());
  })
});

Happy Coding :)

Post a Comment for "Js + Rails - Can't Get This Form Working"