resources/assets/js/check_navbar.js
//When inputs added dynamicly their id's look like : 237_1,237_2 etc. This method looks for all check relevant id's
When inputs added dynamicly their id's look like : 237_1,237_2 etc. This method looks for all check relevant id's
When inputs added dynamicly their id ' s look like : 237_1 237_2 etc . This method looks for all check relevant id ' s
function findAllRelatedInputs(fieldsIdsArr,$targetIframe) {
        var allInputs = fieldsIdsArr;
            $(fieldsIdsArr).each(function () {
                var $inputs = $targetIframe.contents().find("[id^='" + this + "']").filter('input, [contenteditable] ,textarea');
                $inputs.each(function () {
                    var elementId = $(this).attr('id');
                   if($.inArray(elementId,allInputs)==-1){
                       allInputs.push(elementId);
                   }
                });
            });
        return allInputs;
    }
function findAllRelatedInputs ( fieldsIdsArr , $targetIframe ) { var allInputs = fieldsIdsArr ; $ ( fieldsIdsArr ) . each ( function ( ) { var $inputs = $targetIframe . contents ( ) . find ( "[id^='" + this + "']" ) . filter ( 'input, [contenteditable] ,textarea' ) ; $inputs . each ( function ( ) { var elementId = $ ( this ) . attr ( 'id' ) ; if ( $ . inArray ( elementId , allInputs ) == - 1 ) { allInputs . push ( elementId ) ; } } ) ; } ) ; return allInputs ; }
When inputs added dynamicly their id's look like : 237_1,237_2 etc.
When inputs added dynamicly their id ' s look like : 237_1 237_2 etc .