You need to sign in to do that
Don't have an account?
Saad Ahmad 27
Using jquery on Visualforce Page
I have some code that was previously written for us for a visualforce page in our instance of SFDC. I'm just trying to get a better understanding of the following:
Can someone help me understand what the above line does and where would I go about to find '.row-vendor' ?
Please let me know if there are any additional question. Thank you in advance for your help!!
var vendor_category = $('.row-vendor-'+row_no).val();
Can someone help me understand what the above line does and where would I go about to find '.row-vendor' ?
Please let me know if there are any additional question. Thank you in advance for your help!!
It is a selector of jQuery for classes.
https://api.jquery.com/class-selector/
You should find : class="row-vendor-1" class="row-vendor-2" in your source code probably.
The resolution of val() is explained here : https://api.jquery.com/val/#val
All Answers
It is a selector of jQuery for classes.
https://api.jquery.com/class-selector/
You should find : class="row-vendor-1" class="row-vendor-2" in your source code probably.
The resolution of val() is explained here : https://api.jquery.com/val/#val