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

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -