jquery - How to use the `.prop ` values for multiple elements -
how use .prop
value multiple elements. .prop
works fine first element.
var cursorposition = $('.show1').prop("selectionstart");**
thanks in advance.
try following solution looping through rows class show1
:
$(function(){ $('.show1').each(function(){ var cursorposition = $(this).prop("selectionstart"); // `cursorposition` }) })
Comments
Post a Comment