- Posts: 52
- Thank you received: 8
×
WooPrice Calculator PRO
[SOLVED]"ID" Name for Input fields
- bill
-
- Offline
Less
More
1 year 11 months ago #2069
by bill
bill replied the topic: "ID" Name for Input fields
Hello,
you can fetch the value by using "$('input[name="aws_price_calc_n"]').val()" this way you will have the value for the input.
The file that generate the view for the product page is"woo-price-calculator/admin/awspricecalculator/View/product/product.php" but we don't recommend to modify it
Waiting for your feedback
Kind Regards,
Bill
AT1068
you can fetch the value by using "$('input[name="aws_price_calc_n"]').val()" this way you will have the value for the input.
The file that generate the view for the product page is"woo-price-calculator/admin/awspricecalculator/View/product/product.php" but we don't recommend to modify it
Waiting for your feedback
Kind Regards,
Bill
AT1068
Please Log in or Create an account to join the conversation.
- Eckhard Staas
-
Topic Author
- Offline
Less
More
- Posts: 3
- Thank you received: 0
1 year 11 months ago #2066
by Eckhard Staas
Eckhard Staas replied the topic: "ID" Name for Input fields
Thanks for your answer, but I need the value from the input field. I want to fetch the value with "getElementByID".
Maybe I can edit a PHP file to add the ID. Which file is generating the view for the product page?
Maybe I can edit a PHP file to add the ID. Which file is generating the view for the product page?
Please Log in or Create an account to join the conversation.
- bill
-
- Offline
Less
More
- Posts: 52
- Thank you received: 8
1 year 11 months ago #2064
by bill
bill replied the topic: "ID" Name for Input fields
Hello,
sorry for the delay of giving you an answer.
That it's not directly possible but you can refer to his parent div.
In the input field above you see that the parent div has the following ID and you can make your rules by using that id.
<td class="awspc-field-widget-line" id="aws_price_calc_input_1">
<div class="awspc-field-widget" data-id="aws_price_calc_1">
<div class="awspc-field aws_price_calc_numeric">
<input name="aws_price_calc_1" type="text" value="">
</div>
</div>
</td>
Also you can see our documentation of Advanced Validation Rules, to check fields using PHP:
altoswebsolutions.com/manual/woo-price-c...ced-validation-rules
Kind Regards,
Bill
AT1068
sorry for the delay of giving you an answer.
That it's not directly possible but you can refer to his parent div.
In the input field above you see that the parent div has the following ID and you can make your rules by using that id.
<td class="awspc-field-widget-line" id="aws_price_calc_input_1">
<div class="awspc-field-widget" data-id="aws_price_calc_1">
<div class="awspc-field aws_price_calc_numeric">
<input name="aws_price_calc_1" type="text" value="">
</div>
</div>
</td>
Also you can see our documentation of Advanced Validation Rules, to check fields using PHP:
altoswebsolutions.com/manual/woo-price-c...ced-validation-rules
Kind Regards,
Bill
AT1068
Please Log in or Create an account to join the conversation.
- Eckhard Staas
-
Topic Author
- Offline
Less
More
- Posts: 3
- Thank you received: 0
1 year 11 months ago #2061
by Eckhard Staas
Eckhard Staas created the topic: "ID" Name for Input fields
I need an ID for the input fields. Is it possible?
Change this
<input name="aws_price_calc_1" value="100" type="text">
To this
<input name="aws_price_calc_1" ID="aws_price_calc_1" value="100" type="text">
Change this
<input name="aws_price_calc_1" value="100" type="text">
To this
<input name="aws_price_calc_1" ID="aws_price_calc_1" value="100" type="text">
Please Log in or Create an account to join the conversation.
Moderators: david
Time to create page: 0.179 seconds