Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js function string parameter

$('#cat_list').append('<li id="cat_' + cat_id + '">'
            + '<i class="ri-delete-bin-3-fill" onclick='removeLi(' + cat_id + ', "' + cat_title + '")'></i> ' + cat_title
            + '<input type="hidden" name="category[]" value="' + cat_id + '" /></li>');
 
PREVIOUS NEXT
Tagged: #js #function #string #parameter
ADD COMMENT
Topic
Name
6+8 =