Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
sui_page CreditAttribution: sui_page commentedHere's the console error I'm getting –
Uncaught TypeError: Cannot call method 'substring' of undefined
Comment #2
sui_page CreditAttribution: sui_page commentedComment #3
sui_page CreditAttribution: sui_page commentedFound the solution by using the following code:
Comment #4
NickDickinsonWildeThe problem is that you had an error in your custom code; and it was blocking executing the rest of the JavaScript execution.