I'm using the below custom jQuery and noticed when I add this in my Views Slideshow won't display anymore. I'm relatively new to JS so I'm not sure why this would cause a conflict.

 jQuery(document).ready(function ($) {
 	        var textinput2 = $('#edit-combine').val().substring(0);
        $("#edit-combine2").val(textinput2);   
 });

Comments

sui_page’s picture

Title: Conflict with my custom javsascript » Consol erro
Status: Active » Needs review

Here's the console error I'm getting – Uncaught TypeError: Cannot call method 'substring' of undefined

sui_page’s picture

Title: Consol erro » Conflict with custom javascript
sui_page’s picture

Found the solution by using the following code:

        var textinput2 = $('#edit-combine').val();
        $("#edit-combine2").val(textinput2);
NickDickinsonWilde’s picture

Status: Needs review » Closed (works as designed)

The problem is that you had an error in your custom code; and it was blocking executing the rest of the JavaScript execution.