duplicate mvc model property on two jquery ui tabs -


i new mvc , using jquery tabs in mvc4 project. want have duplicate bound property display on 2 tabs. best way handle property can updated either tab?

i ended placing duplicate fields in view, 1 on each tab, , using jquery copy value 1 field other using change event.

    $(function () {         $('#job').find('#effectivedate').change(function () {             var jobeffval = $('#job').find('#effectivedate').val();             $('#eval').find('#effectivedate').val(jobeffval);         });         $('#eval').find('#effectivedate').change(function () {             var evaleffval = $('#eval').find('#effectivedate').val();             $('#job').find('#effectivedate').val(evaleffval);         });     }); 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -